ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportExportOptions Class / TotalPageNumberOverride Property
Example

In This Topic
    TotalPageNumberOverride Property
    In This Topic
    Gets and sets the total page number label offset.
    Syntax
    public int TotalPageNumberOverride {get; set;}
    Public Property TotalPageNumberOverride As Integer
    Remarks

    Specify the total page number for this report.

    Example
    Export report to pdf
    //Note: Call within QueuedTask.Run()
    //Define Export Options
    var exportOptions = new ReportExportOptions
    {
      ExportPageOption = ExportPageOptions.ExportAllPages,
      TotalPageNumberOverride = 0
    
    };
    //Create PDF format with appropriate settings
    PDFFormat pdfFormat = new PDFFormat();
    pdfFormat.Resolution = 300;
    pdfFormat.OutputFileName = path;
    report.ExportToPDF($"{report.Name}", pdfFormat, exportOptions, useSelection);
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also