Skip to main content

Document.AutoFitToPagesWidth Property

Specifies the number of virtual pages to fit into one physical page, so their total width is the same as the width of a physical page.

Namespace: DevExpress.XtraPrinting

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

NuGet Package: DevExpress.Printing.Core

Declaration

public abstract int AutoFitToPagesWidth { get; set; }

Property Value

Type Description
Int32

An integer value, specifying the number of pages.

Remarks

Use this property to scale a document to best fit a required number of virtual pages into one physical page by their width.

Use the Document.ScaleFactor property to specify a custom scale factor (measured in fractions of 1). In this case, the AutoFitToPagesWidth property must be set to 0.

Limitations

The AutoFitToPagesWidth property is ignored when the MultiColumn.Layout property is set to ColumnLayout.DownThenAcross.

The AutoFitToPagesWidth property has no effect for the TopMarginBand and BottomMarginBand because report margin bands do not scale.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoFitToPagesWidth property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also