Back to Devexpress

SpreadsheetCompatibilityOptions.EnableLegacyPdfExport Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcompatibilityoptions-8fe65630.md

latest2.9 KB
Original Source

SpreadsheetCompatibilityOptions.EnableLegacyPdfExport Property

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

Namespace : DevExpress.Xpf.Spreadsheet

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool EnableLegacyPdfExport { get; set; }
vb
Public Property EnableLegacyPdfExport As Boolean

Property Value

TypeDescription
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 TypePath 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.

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

See Also

SpreadsheetCompatibilityOptions Class

SpreadsheetCompatibilityOptions Members

DevExpress.Xpf.Spreadsheet Namespace