Select to view content in your preferred language

CreatePDF widget problem - getting GraphicsLayer to print

1224
0
07-14-2011 02:49 PM
MichaelSmith2
Occasional Contributor
So, for me, the difference between Simple Map Export and Map Export Plus (from ArcGIS Server Blog post on arcpy.mapping) has turned out to be way beyond me.

After getting Julie Powell's Save to PDF (CreatePDF) widget to work I have be unable to get a modified version of it to print graphics from my Flex app to print on the referenced MXD. I took the code from the Export to PDF widget, and surprisingly (said with tongue firmly planted in cheek), it does not work.

What I did was take the section of the widget MXML and copy it into the CreatePDF MXML and imported the required libraries (is that the term?), updated the Python script in the ArcPyMapping_SaveToPDF toolbox with the code sections from the ExportToPDF script that looked relevent, and updated my template MXD with all the TOC layers that make up the ArcGIS Server layers that populate the Flex app map.

Now the widget neither works nor fails, it just spins forever. I downloaded Fiddler and it does not show any errors, though since the widget does not actually fail I didn't really expect to get much from it.

I have attached the MXML, XML, and python script involved, as a ZIP file, in the hope that someone has already done what I am trying to do and can point out where I went wrong.
Tags (2)
0 Kudos
0 Replies