ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / IReportFactory Interface / CreateReport Method / CreateReport(String,ReportDataSource,CIMPage,IEnumerable<ReportFieldStatistic>,ReportTemplate,String) Method
The name of the report.
Object defining data source, fields, and definition query for the report.
The page definition for the report.
An array of T:ArcGIS.Desktop.Reports.ReportFieldStatistic that includes the statistics that will be used in the footer sections.
The report template.
The name of the report styling.

In This Topic
    CreateReport(String,ReportDataSource,CIMPage,IEnumerable<ReportFieldStatistic>,ReportTemplate,String) Method
    In This Topic
    Creates a new report and adds it to a project. The source data for the report can be either a Layer or Table or a data connection to the data. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax

    Parameters

    name
    The name of the report.
    reportDataSource
    Object defining data source, fields, and definition query for the report.
    page
    The page definition for the report.
    statistics
    An array of T:ArcGIS.Desktop.Reports.ReportFieldStatistic that includes the statistics that will be used in the footer sections.
    template
    The report template.
    styling
    The name of the report styling.

    Return Value

    The created report.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also