Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetCompatibilityOptions.EnableLegacyPdfExport Property

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

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.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