All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.
.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+

SpreadsheetCompatibilityOptions.EnableLegacyPdfExport Property

Enables the legacy PDF export engine.

Namespace: DevExpress.XtraSpreadsheet

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

Declaration

[DefaultValue(false)]
public bool EnableLegacyPdfExport { get; set; }
<DefaultValue(False)>
Public Property EnableLegacyPdfExport As Boolean

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 the SpreadsheetCompatibilityOptions.EnableLegacyPdfExport property from the following objects:

Library Object Type Path to EnableLegacyPdfExport
WinForms Controls SpreadsheetControl
.Options.Compatibility.EnableLegacyPdfExport
SpreadsheetControlOptions
.Compatibility.EnableLegacyPdfExport
Office File API DocumentOptions
.Compatibility.EnableLegacyPdfExport
ISpreadsheetComponent
.Options.Compatibility.EnableLegacyPdfExport
Workbook
.Options.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