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.EnableLegacyPrintLayout Property

Allows you to use the legacy mechanism to generate a document printout.

Namespace: DevExpress.XtraSpreadsheet

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

Declaration

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

Property Value

Type Default Description
Boolean

false

true to disable enhanced printout generation; otherwise, false.

Property Paths

You can access the SpreadsheetCompatibilityOptions.EnableLegacyPrintLayout property from the following objects:

Library Object Type Path to EnableLegacyPrintLayout
WinForms Controls SpreadsheetControl
.Options.Compatibility.EnableLegacyPrintLayout
SpreadsheetControlOptions
.Compatibility.EnableLegacyPrintLayout
Office File API DocumentOptions
.Compatibility.EnableLegacyPrintLayout
ISpreadsheetComponent
.Options.Compatibility.EnableLegacyPrintLayout
Workbook
.Options.Compatibility.EnableLegacyPrintLayout

Remarks

In v20.1, we improved row height calculation for printed workbooks in our WinForms Spreadsheet control and Spreadsheet Document API. The resulting printout now resembles the print output of Microsoft® Excel®.

This option 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, a printed document's layout can change. You can activate the EnableLegacyPrintLayout property to revert to the legacy algorithm.

Disable print layout enhancements for a Workbook instance:

workbook.Options.Compatibility.EnableLegacyPrintLayout = true;

Disable print layout enhancements for the Spreadsheet control:

spreadsheetControl.Options.Compatibility.EnableLegacyPrintLayout = true;
See Also