Export Reports (Business Analyst)

Nivel de licencia:BasicStandardAdvanced

Resumen

Exports a report file to the desired format

Uso

Sintaxis

ExportReports_ba (ReportFile, ExportReportsFormatOptions, ExportFile)
ParámetroExplicaciónTipo de datos
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.2Missing Value
  • HTML 4.0Missing Value
  • MS Excel 97-2000Missing Value
  • MS WordMissing Value
  • Rich Text FormatMissing Value
  • Comma-Separated Values (CSV)Missing Value
String
ExportFile

The output directory for the exported reports.

Folder

Ejemplo de código

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.2\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)

Entornos

Esta herramienta no utiliza ningún entorno de geoprocesamiento.

Temas relacionados

Información sobre licencias

ArcGIS for Desktop Basic: Requiere Business Analyst
ArcGIS for Desktop Standard: Requiere Business Analyst
ArcGIS for Desktop Advanced: Requiere Business Analyst
4/26/2014