ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Reports Namespace / ReportExportOptions Class / ExportPageOption Property
Example

In This Topic
    ExportPageOption Property
    In This Topic
    Gets and sets the collection of report pages to be exported.
    Syntax
    Public Property ExportPageOption As ExportPageOptions
    public ExportPageOptions ExportPageOption {get; set;}
    Remarks

    Specify the collection of pages by choosing one of the ExportPageOption.

    The Custom option requires that you also set the CustomPages property.

    The SelectedIndexFeatures option only applies to a spatial map series.

    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
      string path = $@"{Project.Current.HomeFolderPath}\ReportExport.pdf";
      PDFFormat pdfFormat = new PDFFormat();
      pdfFormat.Resolution = 300;
      pdfFormat.OutputFileName = path;
      report.ExportToPDF($"{report.Name}", pdfFormat, exportOptions, true);
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also