ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

Export Reports

  • Summary
  • Usage
  • Syntax
  • Code Sample
  • Environments
  • Licensing Information

Summary

Exports a report file to the desired format

Usage

  • This tool should primarily be used to export reports for Business Analyst trade areas.

  • The List of Output Reports parameter from the Quick Reports tool is required as an input to the parameter Input Report File.

Syntax

ExportReports_ba (ReportFile, ExportReportsFormatOptions, ExportFile)
ParameterExplanationData Type
ReportFile

Select the report(s) file that you would like to export.

File
ExportReportsFormatOptions

The available formats to which the report can be exported.

  • Adobe Format (PDF) —Missing Value
  • HTML 3.2 —Missing Value
  • HTML 4.0 —Missing Value
  • MS Excel 97-2000 —Missing Value
  • MS Word —Missing Value
  • Rich Text Format —Missing Value
  • Comma-Separated Values (CSV) —Missing Value
String
ExportFile

The output directory for the exported reports.

Folder

Code Sample

ExportReports Example (Stand-alone Script)
# Name: ExportReports.py
# Description: Exports a PDF format from a general report in Business Analyst.
# Author: Esri

# Import system modules
import arcview
import arcpy

arcpy.ImportToolbox("C:\Program Files (x86)\ArcGIS\Desktop10.3\Business Analyst\ArcToolbox\Toolboxes\Business Analyst Tools.tbx")
 
try:
# Acquire extension license 
  arcpy.CheckOutExtension("Business")
    
# Define input and output parameters for the Export Reports tool
  InputReport = "C:/My Output Data\Projects/CA, San Francisco/Reports/General/Report.rpt"
  ExportDir = "C:/My Output Data/Export.pdf"
     
# Export reports
  arcpy.ExportReports_ba(InputReport, "Adobe Format (PDF)", ExportDir)

# Release extension license 
  arcpy.CheckInExtension("Business") 
 
except:
  print arcpy.GetMessages(2)

Environments

This tool does not use any geoprocessing environments

Licensing Information

  • ArcGIS for Desktop Basic: Requires Business Analyst
  • ArcGIS for Desktop Standard: Requires Business Analyst
  • ArcGIS for Desktop Advanced: Requires Business Analyst

Related Topics

  • An overview of the Business Analyst Reports toolset
Feedback on this topic?

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal