arcpy.mapping exportToJPG/exportToPDF does not display the table in my layout

2131
2
10-05-2011 01:11 PM
ShawnONeil
New Contributor
Good afternoon,

I have been working on a script to export multiple data driven pages including a table that updates based on a definition query.  I have added information from an attribute table using "Add table to layout.  According to a blog I read this table should update automatically based on any changes made to the attribute table. http://blogs.esri.com/Support/blogs/mappingcenter/archive/2010/01/18/Using-Tables-in-an-ArcMap-Layou...  My first problem, is in order to get the table to update in the layout I have to open and close the properties before I see the changes.  Also, I have to re-add the table each time I open ArcMap to get it to establish the link to the source table (otherwise the table is empty).  These are minor annoyances, but the biggest issue I have is that when I export pages one of two things happens:
1. If I export a single page PDF from the layout in ArcMap, the table in the PDF has no boundary or column lines; exporting as a single page JPEG seems to work okay
2. If I export multiple pages using a Python script, the table does not appear at all no matter what file format I use

I would like to resolve some of these issues so that I can export multiple pages at once via Python and still maintain the appearance of the layout, i.e. the table needs to show up.

Has anyone had any success dealing with similar issues?  I am looking into other options to incorporate a dynamic table into my layout, but I would still like to know what's causing these problems.

Thanks,
Shawn O.
GIS Tech
0 Kudos
2 Replies
JeffBarrette
Esri Regular Contributor
Dynamic tables won't work with Data Driven Pages.  Adding tables to a layout worked well for single page MXDs.  This is something we plan to address in a future release (it won't be 10.1).

A Python solution is available that simulates dynamic "graphic" tables.  Check out the following link on the Resource Center:

http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61...

I hope this helps,
Jeff
0 Kudos
ShawnONeil
New Contributor
Thanks for the clarification.  I've been working on the Python solution, it does look like a good workaround.  Hopefully I can make it work for me.

Shawn
0 Kudos