Skip to main content
A newer version of this page is available. .

PrintHelper.ShowPrintPreviewDialog(Window, IReport) Method

Creates a document from the specified report, and shows it modally in the Document Preview dialog.

Namespace: DevExpress.Xpf.Printing

Assembly: DevExpress.Xpf.Printing.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Printing, DevExpress.Wpf.Printing

Declaration

public static void ShowPrintPreviewDialog(
    Window owner,
    IReport report
)

Parameters

Name Type Description
owner Window

A Window object, which is the owner of the dialog.

report IReport

An object implementing the IReport interface, which represents the report to preview.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ShowPrintPreviewDialog(Window, IReport) method.

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