Skip to main content
A newer version of this page is available. .
All docs
V20.2

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.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Spreadsheet, DevExpress.Wpf.Spreadsheet

Declaration

public bool EnableLegacyPrintLayout { get; set; }

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

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>
See Also