Does anyone have experience in creating reports from your ArcGIS data (geodatabase, map exports) using a python reporting engine? In my current project, we are using Jasper Reports in the following way: A custom geoprocessing tool creates a intermediate XML file containing the data from the Oracle SDE and an exported map image as encoded byte array. This file and a template from iReport is used to generate a PDF file by Jasper Reports.

I am looking for a different solution using a report engine based on python (Jasper is based on Java), I can imagine that a python approach can be better integrated in ArcGIS.

Did anyone tried this before?

  • What type of text data is in your report (attribute table based)?
    – artwork21
    Aug 14, 2012 at 11:35
  • Yes, attribute tables of feature classes in a geodatabase for example. But it should not be restricted to that kind of data. A "screenshot" of the map should also be exported, by arcmap or may be by a map service.
    – offermann
    Aug 14, 2012 at 12:22
  • How do I want to generate the similar report on a web based application? Apr 28, 2015 at 16:51
  • That would be another question. JasperReports can be used for reporting in a web based application, either by writing a Java Servlet or using the server of JasperSoft.
    – offermann
    Apr 30, 2015 at 6:19

2 Answers 2


At the 2012 ESRI User conference, they demonstrated building custom PDF pages and reports using the open-souce ReportLab toolkit.

Check out the Conference proceedings and look at the Technical Workshops for Python Map Automation. One of them makes a reference to this sample script.


There is a new development in 10.1 for Python access in reporting: ExportReport.

Essentially you create a report and save the layout as a report layout file (.rlf). When you call ExportReport from arcpy you access the layout file.

  • In case anyone is looking at this answer with web applications in mind, you should be aware that: the ExportReport function has a dependency on the ArcMap installation. Therefore, ExportReport can only be executed on machines that have ArcMap installed. ExportReport will not run using stand-alone installations of ArcGIS Engine or ArcGIS for Server. Moreover, ExportReport will not work as a Geoprocessing Service. Source: desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/… Mar 6, 2017 at 22:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.