ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Core Namespace / ReportFrameworkExtender Class / FindReportPanes Method
Does not need to be specified.
Report
Example

In This Topic
    FindReportPanes Method
    In This Topic
    Find the report panes that reference a specific report.
    Syntax
    Public Shared Function FindReportPanes( _
       ByVal panes As PaneCollection, _
       Optional ByVal report As Report _
    ) As IEnumerable(Of IReportPane)
    public static IEnumerable<IReportPane> FindReportPanes( 
       PaneCollection panes,
       Report report
    )

    Parameters

    panes
    Does not need to be specified.
    report
    Report

    Return Value

    Pane or all report panes if Report is not specified.
    Example
    Activate an already open report view
    {
      //Note: Needs QueuedTask to run
      Report reportToActivate = Project.Current.GetItems<ReportProjectItem>().FirstOrDefault().GetReport();
      var reportPane = FrameworkApplication.Panes.FindReportPanes(report).Last();
      if (reportPane == null)
        return;
      //Activate the pane
      (reportPane as ArcGIS.Desktop.Framework.Contracts.Pane).Activate();
      //Get the "ReportView" associated with the Report Pane.
      ReportView reportViewFromPane = reportPane.ReportView;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also