ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / SetPage Method
The new page for the report.
Example

In This Topic
    SetPage Method (Report)
    In This Topic
    Sets the page of the report. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetPage( 
       CIMPage page
    )
    Public Sub SetPage( _
       ByVal page As CIMPage _
    ) 

    Parameters

    page
    The new page for the report.
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Example
    Modify the report Page
    //Note: Call within QueuedTask.Run()
    var cimReportPage = new CIMPage
    {
      Height = 12,
      StretchElements = false,
      Width = 6.5,
      ShowRulers = true,
      ShowGuides = true,
      Margin = new CIMMargin { Bottom = 1, Left = 1, Right = 1, Top = 1 },
      Units = LinearUnit.Inches
    };
    report.SetPage(cimReportPage);
    //Change only the report's page height
    report.SetPageHeight(12);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also