Skip to main content
A newer version of this page is available.
All docs
V18.2

PrintHelper.ShowPrintPreview(FrameworkElement, IPrintable, String, String) Method

Creates a document from the specified control, and shows it in the Document Preview window.

Namespace: DevExpress.Xpf.Printing

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

Declaration

public static Window ShowPrintPreview(
    FrameworkElement owner,
    IPrintable source,
    string documentName,
    string title
)

Parameters

Name Type Description
owner FrameworkElement

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

source IPrintable

An object implementing the IPrintable interface.

documentName String

A String value, specifying the document name.

title String

A String value, specifying the Document Preview dialog’s title. “Print Preview” by default.

Returns

Type Description
Window

A Window object.

See Also