Charts in Subreports
Has anyone been able to include a chart in a subreport? I am trying to pull charts from three different layers into one report. If I add the subreport to the layer it is pulling from and run the report from the map tip in the viewer, the chart appears. However, when I run the master report using a workflow, no charts. My guess is that the chart information is not included in the dataTables passed to the report and thus the charts fail. Is there some way I can pass the chart information to the subreports? Has anyone else tried to do this successfully?
0
-
Hi Melissa,
You're right, the charts can only included in a report that was executed against/tied to the layer that they are related. I tried to do something similar to what you've described not too long ago and ran into the same issue. I decided to open a ticket for it just to get some answers and confirm my own thoughts and this is what I found. Charts can be included in reports when the workflow activity 'Report' is used. This activity is client side and the viewer can generate the charts and include it in the report. Whereas the 'Template Report' activity requires the dataTables to be passed in and is server side. The server side report activity isn't able to include charts in the report.
The best workaround I've heard of was suggested by Latitude support during my ticket with them; they suggested to generate the reports separately and then merge the PDFs together at the end of the workflow before passing it as an output to the user. I imagine this would work just fine but it was overkill for my scenario, I had just one dataTable but wanted 2 charts (from different layers). I didn't end up giving this method a shot, since it losing the second chart wasn't a deal-breaker, but hopefully it works for you. I'd love to hear how you implement it if you do try it out.
Warren0 -
Hi Warren,
Thanks for getting back to me so quickly! I was afraid that was the case. I'll have to think about whether it is worth trying to merge reports together. If I do try that, I'll be sure to let you know.
Melissa0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer