Back to Devexpress

XlExportOptionsBase.FitToPrintedPageWidth Property

corelibraries-devexpress-dot-xtraprinting-dot-xlexportoptionsbase-1ca0bad3.md

latest1.8 KB
Original Source

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(false)]
public bool FitToPrintedPageWidth { get; set; }
vb
<DefaultValue(False)>
Public Property FitToPrintedPageWidth As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

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

|

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

FitToPrintedPageHeight

XlExportOptionsBase Class

XlExportOptionsBase Members

DevExpress.XtraPrinting Namespace