ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportView Class / Active Property
Example

In This Topic
    Active Property (ReportView)
    In This Topic
    Gets the active report view.
    Syntax
    public static ReportView Active {get;}
    Public Shared ReadOnly Property Active As ReportView
    Remarks
    Returns null if there is no active report view.
    Example
    Reference the active report view
    //Confirm if the current, active view is a report view.  If it is, do something.
    ReportView activeReportView = ReportView.Active;
    if (activeReportView != null)
    {
      // do something
    }
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also