ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / SetName Method
Name of the report.
Example

In This Topic
    SetName Method (Report)
    In This Topic
    Updates the name of the report. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetName( 
       string name
    )
    Public Sub SetName( _
       ByVal name As String _
    ) 

    Parameters

    name
    Name of the report.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Rename Report
    //Note: Call within QueuedTask.Run()
    ReportProjectItem reportProjItem = Project.Current.GetItems<ReportProjectItem>().FirstOrDefault(item => item.Name.Equals(reportName));
    reportProjItem.GetReport().SetName("RenamedReport");
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also