ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Reports Namespace / Report Class / SetPageHeight Method
Page height of the report.
Example

In This Topic
    SetPageHeight Method
    In This Topic
    Updates the page height of the report. This method must be called on the MCT. Use QueuedTask.Run.
    Syntax
    public void SetPageHeight( 
       double pageHeight
    )
    Public Sub SetPageHeight( _
       ByVal pageHeight As Double _
    ) 

    Parameters

    pageHeight
    Page height of 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