ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / ExportPageOptions Enumeration
Example Example

In This Topic
    ExportPageOptions Enumeration
    In This Topic
    Specifies the export page options.
    ExportAllPages Export all pages.
    ExportByPageRange Export a custom page range.
    ExportEvenPagesOnly Export even pages only.
    ExportLastPage Export the last page only.
    ExportOddPagesOnly Export odd pages only.
    ExportSelectedIndexFeatures Export the selected index features.
    ExportSelectedPage Export the selected page.
    ExportSelectedTOCPages Export the selected TOC pages.
    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);
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also