Skip to main content
A newer version of this page is available. .

XlExportOptionsBase.FitToPrintedPageWidth Property

Gets or sets whether the output document should be fit to the page width when printed.

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

[DefaultValue(false)]
public bool FitToPrintedPageWidth { get; set; }

Property Value

Type Default Description
Boolean **false**

true, if the output document should be fit to the printed page width.

Property Paths

You can access this nested property as listed below:

Library Object Type Path to FitToPrintedPageWidth
Cross-Platform Class Library ExportOptions
.Xls .FitToPrintedPageWidth
WPF Controls ExportOptionsContainer
.Xls .FitToPrintedPageWidth

Remarks

This property enables the “Fit All Columns on One Page“ option available in the Print dialog of an Excel document.

When both the FitToPrintedPageWidth and XlExportOptionsBase.FitToPrintedPageHeight properties are set to true, this enables the “Fit Sheet on One Page“ option in the Print dialog of an Excel document.

See Also