ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / AddTemplateSubReport Method
The report template file path.
Position to add subreport. If -1, the subreport is added to the end of the report. If 0, the subreport is added to the beginning of the report.
Adjust the size of the subreport to match main report.
Specified template file is a new template.

In This Topic
    AddTemplateSubReport Method
    In This Topic
    Adds a template subreport to the report. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void AddTemplateSubReport( 
       string templatePath,
       int insertIndex,
       bool adjustPageSize,
       bool newTemplate
    )
    Public Sub AddTemplateSubReport( _
       ByVal templatePath As String, _
       ByVal insertIndex As Integer, _
       ByVal adjustPageSize As Boolean, _
       ByVal newTemplate As Boolean _
    ) 

    Parameters

    templatePath
    The report template file path.
    insertIndex
    Position to add subreport. If -1, the subreport is added to the end of the report. If 0, the subreport is added to the beginning of the report.
    adjustPageSize
    Adjust the size of the subreport to match main report.
    newTemplate
    Specified template file is a new template.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    The reportItem is invalid.
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.2 or higher.
    See Also