I was able to accomplish this using AlivePDF, it is an open source PDF printing API. You can take any of the columns of a datagrid and publish that into a PDF report. You can also take display features (like a map) and print them as images in the report. I attached two sample reports, one is a list out of a datagrid, the other is an inspection report and shows a map. When pulling data from a datagrid it honors the sort.
we use coldfusion + iText for this server side. we build the attribute tables dynamically, measure their sizes once the tables are filled w/data, then merge them w/the PDF map document produced by the AGS print task, sticking what fits in the map's white space & dumping what doesn't onto supplemental pages. iText gives you an insane amount of control, coldfusion lets us glue this altogether more easily.
i suppose anything server side that can talk to java or c# an be used w/iText (it has java & c# versions).
we've tried purePDF (partial AS3 port of iText) & alivePDf client side but we found these too slow & lacking some functionality.
attached is the code I used in my application. Any questions let me know
Hello Paul. Would you mid sharing the source code in CF? Thanks.
Hi ,
Has anyone tried to include the Legend using this code?
I need to include the Legend on the map, but no luck .Please help.