Skip to main content

Export Report To Excel (Data Management Tools)

Summary

Exports an ArcGIS Pro report or a report file to a Microsoft Excel file (.xlsx).

Learn more about reports

Usage

  • This tool creates an Excel file from a report in an ArcGIS Pro project or a report file (.rptx).

  • If a query exists in the report or report file definition, additional expressions will be appended to the existing query.

  • This tool supports page range settings to export certain pages in addition to the entire report.

  • This tool supports custom page numbering options to modify start and total page numbers.

  • This tool supports exporting report sections across multiple sheets.

  • This tool does not support exporting image elements, attachments, map frames, chart frames, or supplemental pages. This tool exports text and graphics.

Parameters

Label Explanation Data type

Input Report

The input report or .rptx file.

Report; File

Excel File

The output Excel file.

File

Expression

(Optional)

An SQL expression that will be used to select a subset of records. This expression will be applied in addition to any existing expressions.

SQL Expression

Adjust Row Height

(Optional)

Specifies whether the row height will adjust to fit the content of the cell.

  • CheckedThe row height will collapse or expand to fit the content of the cell. This is the default.

  • UncheckedThe row height will not collapse or expand to fit the content of the cell.

Boolean

Merge Cells

(Optional)

Specifies whether the cells of the Excel file will be merged to fit the content.

  • CheckedThe cells of the Excel file will be merged to fit the content. This is the default.

  • UncheckedThe cells of the Excel file will not be merged to fit the content.

Boolean

Remove Vertical Whitespace

(Optional)

Specifies whether extra white space will be removed from the output Excel file.

  • CheckedExtra white space will be removed from the output Excel file. This is the default.

  • UncheckedExtra white space will not be removed from the output Excel file.

Boolean

Display Gridlines

(Optional)

Specifies whether grid lines will be automatically displayed when viewing sheets in the output Excel file.

  • CheckedGrid lines will be automatically displayed when viewing sheets in the output Excel file. This is the default.

  • UncheckedGrid lines will not be displayed when viewing sheets in the output Excel file.

Boolean

Export Unsupported Numeric Formats as Text

(Optional)

Specifies whether unsupported numeric formats will be exported as text.

  • CheckedUnsupported numeric formats will be exported as text.

  • UncheckedUnsupported numeric formats will be exported as a general Excel data type. This is the default.

Boolean

Sheet Export

(Optional)

Specifies how each report will be exported to sheets.

  • One sheet for all report sectionsAll report sections will be exported to an individual sheet. This is the default.

  • One sheet for each subreportEach subreport will be exported to an individual sheet.

  • One sheet for each report pageEach report page will be exported to an individual sheet.

String

Page Range Type

(Optional)

Specifies the page range of the report that will be exported.

  • All pagesAll pages will be exported. This is the default.

  • Last pageOnly the last page will be exported.

  • Odd numbered pagesOnly the odd numbered pages will be exported.

  • Even numbered pagesOnly the even numbered pages will be exported.

  • Custom page rangeA custom page range will be exported using the Custom Page Range parameter value.

String

Custom Page Range

(Optional)

The pages that will be exported when the Page Range Type parameter is set to Custom page range. You can set individual pages, ranges, or a combination of both separated by commas, such as 1, 3-5, 10.

String

Initial Page Number

(Optional)

The initial page number of the report that will be used to create a page numbering offset to add more pages to the beginning of the report.

Long

Final Page Number

(Optional)

The page number that will be displayed on the last page of the Excel file.

Long

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: Yes
  • Standard: Yes
  • Advanced: Yes