Template report scalebar fields? Using a custom dataset.
Print report generates scalebar related fields (like _ScaleBarDistance), is there a way to generate these fields for a custom template report?
The custom template report requires you to use your own report dataset. Since this dataset is not created by Geocortex there are no scalebar related fields/tables to use within the report template for drawing a scalebar.
0
-
Hi Tyson,
Unfortunately, the variables for the print template like "_ScaleBarDistance" are hardcoded so that it only works for this feature.
If you want to replicate this kind of behaviour with template reports, then you will have to be creative with it. Currently, we do not have any activities that will create a scalebar, however, you can use the GetMapInfo activity to get the current scale of the viewer and use that to create a ratio/fractional scale.
If you use the Export Map Activity to grab the map image for your report, then you can specify the exact scale to use for the map. Then in the report, you can hardcode in the scalebar values/bar because you know the scale that the viewer will be using.
My third suggestion would be to use the Print Map activity. This will allow you to take advantage of the Print Template variables (like "_MainMap", "_ScaleBarDistance", etc.) to create the first half of your report. You then have a separate sequence for the attribute information which uses the TemplateReport activity to create the second half of the report. Then you can use the MergePDFs activity to merge your report into one file.
I hope these suggestions help. I would definitely add this idea to our Ideas Board so that it can be considered for a future release.
Regards,
Carmen0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar