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

In This Topic
    ReportExportOptions Class
    In This Topic
    Represents a collection of settings for exporting a report.
    Syntax
    public class ReportExportOptions 
    Public Class ReportExportOptions 
    Remarks
    Before you can export a report, you need to configure your ExportFormat and you need to construct your export settings.
    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);
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Reports.ReportExportOptions

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also