SpreadsheetCompatibilityOptions.EnableLegacyPrintLayout Property
Allows you to use the legacy mechanism to generate a document printout. This is a dependency property.
Namespace: DevExpress.Xpf.Spreadsheet
Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll
NuGet Package: DevExpress.Wpf.Spreadsheet
Declaration
Property Value
Type | Description |
---|---|
Boolean | true to disable enhanced printout generation; otherwise, false. The default value is false. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to EnableLegacyPrintLayout |
---|---|
SpreadsheetControlOptions |
|
Remarks
In v20.2, we improved row height and column width calculation for printed workbooks in our WPF Spreadsheet. 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.2 or later, a printed document’s layout can change. You can activate the EnableLegacyPrintLayout property to revert to the legacy algorithm.
<dxsps:SpreadsheetControl.Options>
<dxsps:SpreadsheetControlOptions>
<dxsps:SpreadsheetControlOptions.Compatibility>
<dxsps:SpreadsheetCompatibilityOptions EnableLegacyPrintLayout="True" />
</dxsps:SpreadsheetControlOptions.Compatibility>
</dxsps:SpreadsheetControlOptions>
</dxsps:SpreadsheetControl.Options>