Export Reports (Business Analyst)
Résumé
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.
Syntaxe
ExportReports_ba (ReportFile, ExportReportsFormatOptions, ExportFile)
Paramètre | Explication | Type de donnée |
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 |
Exemple de code
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)
Environnements
Cet outil ne fait appel à aucun environnement de traitement de données géographiques
Rubriques associées
Informations de licence
ArcView : RequiertBusiness Analyst
ArcEditor : RequiertBusiness Analyst
ArcInfo : RequiertBusiness Analyst
10/4/2010