ArcGIS Pro 3.0 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, Windows 8.1

    See Also