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.ShowPage(IPage) Method

Shows the specified page in the Document Viewer.

Namespace: DevExpress.DocumentView.Controls

Assembly: DevExpress.Utils.v24.2.dll

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

#Declaration

public void ShowPage(
    IPage page
)

#Parameters

Name Type Description
page IPage

An object implementing the IPage interface. (Typically, this is a Page object.)

#Remarks

The following example demonstrates the ShowPage property in action.

using System;
using System.Windows.Forms;
// ...

private void Form1_Load(object sender, EventArgs e) {
    // Create a report and assign it to the Document Viewer instance.
    XtraReport1 report = new XtraReport1();
    this.documentViewer1.DocumentSource = report;

    // Create a paginated report document.
    report.CreateDocument(false);

    // Show the document's fourth page in the Document Viewer.
    this.documentViewer1.ShowPage(report.PrintingSystem.Pages[3]);
}
See Also