Back to Devexpress

XlExportOptionsBase.FitToPrintedPageHeight Property

corelibraries-devexpress-dot-xtraprinting-dot-xlexportoptionsbase-c9cd1d50.md

latest1.8 KB
Original Source

XlExportOptionsBase.FitToPrintedPageHeight Property

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

Namespace : DevExpress.XtraPrinting

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

NuGet Package : DevExpress.Printing.Core

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

true , to fit the output document to the printed page height; otherwise, false.

|

Remarks

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

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

See Also

FitToPrintedPageWidth

XlExportOptionsBase Class

XlExportOptionsBase Members

DevExpress.XtraPrinting Namespace