Back to Devexpress

SpreadsheetCompatibilityOptions.EnableLegacyPrintLayout Property

wpf-devexpress-dot-xpf-dot-spreadsheet-dot-spreadsheetcompatibilityoptions-d7ba9488.md

latest2.7 KB
Original Source

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

NuGet Package : DevExpress.Wpf.Spreadsheet

Declaration

csharp
public bool EnableLegacyPrintLayout { get; set; }
vb
Public Property EnableLegacyPrintLayout As Boolean

Property Value

TypeDescription
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 TypePath 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.

xaml
<dxsps:SpreadsheetControl.Options>
    <dxsps:SpreadsheetControlOptions>
        <dxsps:SpreadsheetControlOptions.Compatibility>
            <dxsps:SpreadsheetCompatibilityOptions EnableLegacyPrintLayout="True" />
        </dxsps:SpreadsheetControlOptions.Compatibility>
    </dxsps:SpreadsheetControlOptions>
</dxsps:SpreadsheetControl.Options>

See Also

SpreadsheetCompatibilityOptions Class

SpreadsheetCompatibilityOptions Members

DevExpress.Xpf.Spreadsheet Namespace