ArcGIS Pro 3.7 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 Shared ReadOnly Property Active As ReportView
    public static ReportView Active {get;}
    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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also