CreateReportPaneAsync Method
Create and activate a new report pane using a Report reference. Must be called on GUI thread.
Open a Report project item in a new view
//Open a report project item in a new view.
//A report project item may exist but it may not be open in a view.
//Reference a report project item by name
ReportProjectItem reportPrjItem = Project.Current.GetItems<ReportProjectItem>().FirstOrDefault(item => item.Name.Equals("MyReport"));
//Get the report associated with the report project item
Report reportToOpen = await QueuedTask.Run(() => reportPrjItem.GetReport());
//Create the new pane
IReportPane iNewReporttPane = await ProApp.Panes.CreateReportPaneAsync(reportToOpen); //GUI thread
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.