Skip to main content
All docs
V25.1
  • SpreadsheetCompatibilityOptions.EnableLegacyPdfExport Property

    Enables the legacy PDF export engine.

    Namespace: DevExpress.XtraSpreadsheet

    Assembly: DevExpress.Spreadsheet.v25.1.Core.dll

    NuGet Package: DevExpress.Spreadsheet.Core

    Declaration

    [DefaultValue(false)]
    public bool EnableLegacyPdfExport { get; set; }

    Property Value

    Type Default Description
    Boolean false

    true to use the legacy PDF export based on the Printing System functionality; otherwise, false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to EnableLegacyPdfExport
    DocumentOptions
    .Compatibility .EnableLegacyPdfExport

    Remarks

    We implemented a new PDF export engine in v20.1 and made it the default export option in our WinForms Spreadsheet control and Spreadsheet Document API. The new engine renders more accurate layouts and increases the speed at which PDF files are generated.

    The new PDF export is only available when you use the new layout calculation engine (the EnableLegacyLayoutEngine property is false).

    If you upgrade your application to DevExpress v20.1 or later, the exported PDF file layout can change. Activate the EnableLegacyPdfExport property to switch to the legacy PDF export engine that uses Printing System to generate PDF files.

    Disable the new PDF export engine for a Workbook instance:

    workbook.Options.Compatibility.EnableLegacyPdfExport = true;
    

    Disable the new PDF export engine for the Spreadsheet control:

    spreadsheetControl.Options.Compatibility.EnableLegacyPdfExport = true;
    
    See Also