The 5.8 release of Geocortex Reporting introduced several new types of printing controls for customers who have licensed both it and Geocortex Printing.
In addition to the Map Picture Box control now being able to include a printed map in a report, the Overview Map Picture Box, Map Info, Scale Bar and North Arrow controls have also been made available and can be associated with either the Feature Picture Box or Map Picture Box.
We’re taking a different approach in this week’s Geocortex Tech Tip, where we’ll demonstrate a couple of different ways you can start displaying map images in reports using Geocortex Workflow technology.
“Hi, my name is Darren and I am a developer on the Products team. Today, we are going to take a look at how you can include maps and map-related controls in reports. Let’s take a look!
Geocortex Reporting now allows you to include a map and map-related controls in your reports, provided that you are licensed with both Geocortex Reporting and Geocortex Printing.
I have two demonstrations for today of how to include a map in a report using Geocortex Workflow.
Here, I have a simple report. Over here, left of the toolbar, we have our map and map-related controls. We have the Map Picture Box, Overview Map, Map Info, Scalebar, and North Arrow. I’ll go ahead and drag map control into my report and I’ll also add an overview map.
With the Overview Map control selected, I’ll see that it has a new property here called ‘Map Name’. As Reporting allows you to include multiple maps in a single report, we needed a way to associate these map-related controls with specific maps and we do that by their map name.
I’ll go ahead and open the drop-down and here I have ‘mapPictureBox1’, I’ll select that. This ‘mapPictureBox1’ corresponds to the map control we see here.
I’ll go ahead and save my changes to this report and switch over to Workflow Designer. Here, I have a workflow with a run report activity and a display form that will be used to display that hyperlink to the completed report. The run report activity has a new input called ‘Include Map’.
When you set this to ‘True’, that will tell the run report activity that you want to include the map you see in your viewer at the extent you see your in your viewer in your report.
So, I’ll go ahead and save that change, and here, I’ll refresh my viewer, and in my viewer in the toolbar, I just have a button that will go ahead and run that workflow for me.
In a moment here, my report will finish running and I’ll have a hyperlink to the completed report.
So, we see that we have our map control with our overview map.
For my second demonstration, I’m going to show you another way to include the map from your viewer in a report. This one gives you a little bit more control over the extended scale at which you’ll print the map.
So, I’m going to go ahead and remove that ‘True’ from the include map option, and we have a new activity that we’ve added to the workflow called ‘Generate Webmap for Report’. I’ll go ahead and add that.
Select that activity here. It requires a map name. This relates to the map control in the report. So, just to remind ourselves, this was ‘mapPictureBox1’. I’ll go ahead and enter that here.
You can provide an extent to this control if you like. For this demonstration, I’m not going to do that. I’m just going to specify a scale at which I want my map to print.
I’m going to go back to my run report activity. In here, we see have another new input, ‘Webmap Parameters’. The web map parameters that we are looking for are the outputs of the generate for web map report activity.
I’m looking for that activity result. I’ll go ahead and save my changes here. I’m going to reload my viewer one more time, and run that simple workflow again.
The output is going to be similar. We are going to see a map with an overview map, but my map is going to have a scale of one to one million as set in the workflow.
Thank you for joining me today. I hope you found this demonstration of how to include a map in a report helpful!”
Enjoyed learning about displaying map images in reports and want to see more of Geocortex Workflow in action? Click the button below to get more product information, or to schedule a personal demonstration!