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

In This Topic
    ReportView Class
    In This Topic
    Represents the view of report in a pane.
    Object Model
    ReportView ClassReportView ClassReport Class
    Syntax
    public sealed class ReportView 
    Public NotInheritable Class ReportView 
    Remarks

    A project can contain multiple rerports. A report view is a pane that displays the view of a report. Report views are the primary interface used to display, navigate, and select report elements. The report being visualized in the view can be accessed via the Report property.

    There can be multiple report views open at a given time, but there can only be one active report view. The active report view will set the context for the ribbon and many of the dock panes in the application. The Active property will return null if there is no active report view.

    The report view has several "ZoomTo" nagivation methods and it also provides the context for managing selected items in the Contents pane. For example, the GetSelectedElements method returns a collection of selected page report elements.

    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
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Reports.ReportView

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also