<?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 Re: Can an InMemory feature class/table be an ExportReport source? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146978#M4969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I despaired trying to get reports to work, the output was too complex.&lt;BR /&gt;So I switched to exporting to a spreadsheet using the Excel COM interface and a template.&lt;BR /&gt;Another radical alternative might be to export directly to a PDF using reportlab.&lt;BR /&gt;Reportlab has an easy module to pour data into tables and graphs.&lt;BR /&gt;Or maybe use matplotlib?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is very disappointing, and I know you are not someone to give up easily.&amp;nbsp; I will call tech support on this then.&amp;nbsp; I have a report design they have already helped me with and will add this to the support call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Oct 2013 20:11:37 GMT</pubDate>
    <dc:creator>RichardFairhurst</dc:creator>
    <dc:date>2013-10-14T20:11:37Z</dc:date>
    <item>
      <title>Can an InMemory feature class/table be an ExportReport source?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146976#M4967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am creating a python script where I want a geoprocess that uses the inmemory workspace to create a feature class or table to serve as the source data for an RLF report file.&amp;nbsp; The arcpy &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Export_Report_ArcPy/004v00000022000000/"&gt;ExportReport&lt;/A&gt;&lt;SPAN&gt; method help says the data source has to be in a .mxd or .lyr file to work properly.&amp;nbsp; Does that mean that I cannot use an inmemory output with that function?&amp;nbsp; Is there a way to associate an inmemory output with one of those file types?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It I have to output the data to disk, is there a best practice for authoring a tool that would create an output feature class/table to an on disk workspace path that will run on multiple user installations?&amp;nbsp; Each user will have ArcGIS installed on their local machine and should have the Default.gdb in their local C: drive standard path.&amp;nbsp; Is the Default.gdb the best place to create an on disk output for this kind of tool and are there any built-in ArcGIS path variables that would assist in accessing it without building the path for each user with code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Oct 2013 11:23:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146976#M4967</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-09T11:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can an InMemory feature class/table be an ExportReport source?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146977#M4968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I despaired trying to get reports to work, the output was too complex.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I switched to exporting to a spreadsheet using the Excel COM interface and a template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another radical alternative might be to export directly to a PDF using reportlab.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reportlab has an easy module to pour data into tables and graphs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Or maybe use matplotlib?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 09:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146977#M4968</guid>
      <dc:creator>KimOllivier</dc:creator>
      <dc:date>2013-10-14T09:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can an InMemory feature class/table be an ExportReport source?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146978#M4969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I despaired trying to get reports to work, the output was too complex.&lt;BR /&gt;So I switched to exporting to a spreadsheet using the Excel COM interface and a template.&lt;BR /&gt;Another radical alternative might be to export directly to a PDF using reportlab.&lt;BR /&gt;Reportlab has an easy module to pour data into tables and graphs.&lt;BR /&gt;Or maybe use matplotlib?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That is very disappointing, and I know you are not someone to give up easily.&amp;nbsp; I will call tech support on this then.&amp;nbsp; I have a report design they have already helped me with and will add this to the support call.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Oct 2013 20:11:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146978#M4969</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-14T20:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can an InMemory feature class/table be an ExportReport source?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146979#M4970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I got the answer to my question from ESRI tech support.&amp;nbsp; You can export a report from an in_memory feature class created using any standard geoprocessing tool, like Dissolve or Copy Features.&amp;nbsp; The trick is to first use the Make Feature Layer on the Feature Class and then add the layer to a virtual map before running the ExportReport method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the code sample below assume that PARCELS_Dissolve is defined as a real in_memory Feature Class and that PARCELS_Dissolve_Layer is a layer name string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeFeatureLayer_management(PARCELS_Dissolve, PARCELS_Dissolve_Layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;lyr = arcpy.mapping.Layer(PARCELS_Dissolve_Layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.mapping.ExportReport(lyr,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r"C:\Mailing_Labels.rlf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r"C:\Mailing_Labels.pdf",&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "ALL")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ExportReport only works when it is given a layer that has been added to a map.&amp;nbsp; Fortunately the arcpy.mapping.Layers method appears to be adding the layer to a virtual mxd since I never specified any actual mxd in my code.&amp;nbsp; The code can run completely from Idle.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2013 22:58:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/can-an-inmemory-feature-class-table-be-an/m-p/146979#M4970</guid>
      <dc:creator>RichardFairhurst</dc:creator>
      <dc:date>2013-10-15T22:58:05Z</dc:date>
    </item>
  </channel>
</rss>

