wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcompatibilityoptions-d7ba9488.md
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.v25.2.dll
NuGet Package : DevExpress.Wpf.Spreadsheet
public bool EnableLegacyPrintLayout { get; set; }
Public Property EnableLegacyPrintLayout As Boolean
| Type | Description |
|---|---|
| Boolean |
true to disable enhanced printout generation; otherwise, false. The default value is false.
|
You can access this nested property as listed below:
| Object Type | Path to EnableLegacyPrintLayout |
|---|---|
| SpreadsheetControlOptions |
.Compatibility .EnableLegacyPrintLayout
|
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>
See Also
SpreadsheetCompatibilityOptions Class