VertiGIS Studio Workflow's GetMapScreenshot activity is a useful tool that enables the addition of map images from the current session to a report output. These images are sourced from the user's current session in a VertiGIS Studio Web application. This article provides a high level guide on how to utilize this feature.
The process involves capturing an image from the map, integrating it into the report, and displaying it in a Picture Box control, which can be accompanied by other reporting controls for a comprehensive report.
Step-By-Step
- Execute the GetMapScreenshot activity: This creates a screenshot of the current map view in the user's session.
- Display the result in a form: The screenshot captured from the previous step is displayed on a form for the user to review.
- Submit the form to send the screenshot to the report: Once the user submits the form, the screenshot is sent to the report for integration.
- Open a window to display the report: Once the report is completed, a new window pops up, displaying the final result with the screenshot included.
Important Note
The output of the GetMapScreenshot activity is a URL in base64 encoding. Therefore, when setting the image source in the Picture Box, it is essential to use a Base64Decode function to correctly parse the input.
Attached are two example files—a Workflow and a Report—that demonstrate this process in action. The examples provide a practical context to better understand the implementation of the GetMapScreenshot activity in VertiGIS Studio Workflow for report generation.
To view these files, you will need to use the File > Import menu in Workflow and Reporting designers.
Comments
1 comment
Insightful! Thanks
Please sign in to leave a comment.