ArcGIS Pro 3.6 API Reference Guide
ArcGIS.Desktop.Reports Namespace / IReportFactory Interface / CreateReport Method / CreateReport(String,ReportCustomTemplateDefinition) Method
The name of the report.
T:ArcGIS.Desktop.Reports.ReportCustomTemplateDefinition object defining data sources, fields, maps, charts and supplemental pages to populate template.

In This Topic
    CreateReport(String,ReportCustomTemplateDefinition) Method
    In This Topic
    Creates a new report using a custom template 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.
    templateDataDef
    T:ArcGIS.Desktop.Reports.ReportCustomTemplateDefinition object defining data sources, fields, maps, charts and supplemental pages to populate template.

    Return Value

    The created report.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.6 or higher.
    See Also