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

    Enables the legacy PDF export engine. This is a dependency property.

    Namespace: DevExpress.Xpf.Spreadsheet

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

    NuGet Package: DevExpress.Wpf.Spreadsheet

    Declaration

    public bool EnableLegacyPdfExport { get; set; }

    Property Value

    Type Description
    Boolean

    true to use the legacy PDF export based on the DevExpress Printing library; otherwise, false. The default value is false.

    Property Paths

    You can access this nested property as listed below:

    Object Type Path to EnableLegacyPdfExport
    SpreadsheetControlOptions
    .Compatibility .EnableLegacyPdfExport

    Remarks

    We implemented a new PDF export engine in v20.2 and made it the default export option in our WPF Spreadsheet control. 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.2 or later, the exported PDF file layout can change. Activate the EnableLegacyPdfExport property to switch to the legacy PDF export engine that uses DevExpress Printing library to generate PDF files.

    <dxsps:SpreadsheetControl.Options>
        <dxsps:SpreadsheetControlOptions>
            <dxsps:SpreadsheetControlOptions.Compatibility>
                <dxsps:SpreadsheetCompatibilityOptions EnableLegacyPdfExport="True" />
            </dxsps:SpreadsheetControlOptions.Compatibility>
        </dxsps:SpreadsheetControlOptions>
    </dxsps:SpreadsheetControl.Options>
    
    See Also