Export Reports (Business Analyst)

汇总

Exports a report file to the desired format

用法

语法

ExportReports_ba (ReportFile, ExportReportsFormatOptions, ExportFile)
参数说明数据类型
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

代码示例

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\ArcGIS\Desktop10.0\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)

环境

此工具不使用任何地理处理环境

相关主题

许可信息

ArcView: 需要 Business Analyst
ArcEditor: 需要 Business Analyst
ArcInfo: 需要 Business Analyst

10/4/2010