officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetcompatibilityoptions-281d20ad.md
Enables the legacy PDF export engine.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.Spreadsheet.v25.2.Core.dll
NuGet Package : DevExpress.Spreadsheet.Core
[DefaultValue(false)]
public bool EnableLegacyPdfExport { get; set; }
<DefaultValue(False)>
Public Property EnableLegacyPdfExport As Boolean
| Type | Default | Description |
|---|---|---|
| Boolean | false |
true to use the legacy PDF export based on the Printing System functionality; otherwise, false.
|
You can access this nested property as listed below:
| Object Type | Path to EnableLegacyPdfExport |
|---|---|
| DocumentOptions |
.Compatibility .EnableLegacyPdfExport
|
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;
workbook.Options.Compatibility.EnableLegacyPdfExport = True
Disable the new PDF export engine for the Spreadsheet control:
spreadsheetControl.Options.Compatibility.EnableLegacyPdfExport = true;
spreadsheetControl.Options.Compatibility.EnableLegacyPdfExport = True
See Also
SpreadsheetCompatibilityOptions Class