Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DocumentViewerBase.SetPageView(Int32, Int32) Method

Determines the number of columns and rows used to display pages of a multipage report within a Print Preview.

Namespace: DevExpress.DocumentView.Controls

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

public void SetPageView(
    int columns,
    int rows
)

#Parameters

Name Type Description
columns Int32

The number of columns. It will not exceed the DocumentViewerBase.MaxPageColumns property value.

rows Int32

The number of rows. It will not exceed the DocumentViewerBase.MaxPageRows property value.

#Remarks

The following image shows a Print Preview form when the number of rows is equal to 2 and the number of columns equals 4.

SetPageView(4,2)

To view the report using the “Whole Page” option, set the number of rows and columns to 1: SetPageView(1, 1).

See Also