Доступно с лицензией Business Analyst.
Краткая информация
Exports a report file to the desired format
Использование
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.
Синтаксис
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.
| 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(r"C:\Program Files (x86)\ArcGIS\Desktop10.7\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)
Параметры среды
Этот инструмент не использует параметры среды геообработки
Информация о лицензиях
- ArcGIS Desktop Basic: Требует Business Analyst
- ArcGIS Desktop Standard: Требует Business Analyst
- ArcGIS Desktop Advanced: Требует Business Analyst