<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic updating table in layout and exporting to pdf in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565922#M44334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have automated the production of maps using python scripts that change the data sources path, using replaceWorkspaces method, and exports the map to a pdf, using ExportToPDF method with default parameters. The export uses the layout view that includes a map frame, title, legend and a table added using Add table to layout from the table view interface. Table columns are customised (column names, visible and formats) before adding it to the layout. All data is stored in a file geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem 1 - after re-pointing the table data source to the new workspace, the table in the layout is not updated. The only way to get the table updated in the layout is getting the table in edit mode and stop editing after. The table view also loses the customization previously done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem 2 - when the ExportToPDF function is used in a python script, the&amp;nbsp; table in the layout is not exported. We've looked at same entries in the ESRI forums and played with page size but no difference. When using a ExportToJPEG function the result is the same. If the map is exported to a PDF or Jpeg manually&amp;nbsp; the table displays correctly in the output file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using ArcGIS 10 (Info) with SP2&amp;nbsp;&amp;nbsp; and tried both on Windows XP and Windows 7 machines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone with similar problems? many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rui&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Sep 2011 13:28:41 GMT</pubDate>
    <dc:creator>RuiLopes</dc:creator>
    <dc:date>2011-09-30T13:28:41Z</dc:date>
    <item>
      <title>updating table in layout and exporting to pdf</title>
      <link>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565922#M44334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have automated the production of maps using python scripts that change the data sources path, using replaceWorkspaces method, and exports the map to a pdf, using ExportToPDF method with default parameters. The export uses the layout view that includes a map frame, title, legend and a table added using Add table to layout from the table view interface. Table columns are customised (column names, visible and formats) before adding it to the layout. All data is stored in a file geodatabase.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem 1 - after re-pointing the table data source to the new workspace, the table in the layout is not updated. The only way to get the table updated in the layout is getting the table in edit mode and stop editing after. The table view also loses the customization previously done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Problem 2 - when the ExportToPDF function is used in a python script, the&amp;nbsp; table in the layout is not exported. We've looked at same entries in the ESRI forums and played with page size but no difference. When using a ExportToJPEG function the result is the same. If the map is exported to a PDF or Jpeg manually&amp;nbsp; the table displays correctly in the output file&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We are using ArcGIS 10 (Info) with SP2&amp;nbsp;&amp;nbsp; and tried both on Windows XP and Windows 7 machines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone with similar problems? many thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rui&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 13:28:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565922#M44334</guid>
      <dc:creator>RuiLopes</dc:creator>
      <dc:date>2011-09-30T13:28:41Z</dc:date>
    </item>
    <item>
      <title>Re: updating table in layout and exporting to pdf</title>
      <link>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565923#M44335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tables inserted into a layout can't be dymanically updated via arcpy.&amp;nbsp; There is a sample that simulates dynamic tables in a layout.&amp;nbsp; The table itself is a graphic and the values are text elements that get updated by reading the dataset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is a link:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Sep 2011 20:55:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565923#M44335</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-09-30T20:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: updating table in layout and exporting to pdf</title>
      <link>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565924#M44336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the tips and link Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The table in the layout doesn't need to be updated by arcpy, it just needs to be synchronised with the data source. ESRI UK gave us a work around that is basically to increase the size of the table object in the layout and shrink it back to the original size programmatically. This shows that the layout tables are actually dynamic, unlike in previous versions, but the dynamic bit doesn't work well!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rui&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Tables inserted into a layout can't be dymanically updated via arcpy.&amp;nbsp; There is a sample that simulates dynamic tables in a layout.&amp;nbsp; The table itself is a graphic and the values are text elements that get updated by reading the dataset.&lt;BR /&gt;&lt;BR /&gt;Here is a link:&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894"&gt;http://resources.arcgis.com/gallery/file/geoprocessing/details?entryID=8C8E6EB6-1422-2418-A0B8-6AA61BF57894&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Jeff&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:13:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/updating-table-in-layout-and-exporting-to-pdf/m-p/565924#M44336</guid>
      <dc:creator>RuiLopes</dc:creator>
      <dc:date>2011-10-05T10:13:12Z</dc:date>
    </item>
  </channel>
</rss>

