Back to Devexpress

PrintHelper.ShowPrintPreview(FrameworkElement, IPrintableControl, String) Method

wpf-devexpress-dot-xpf-dot-printing-dot-printhelper-dot-showprintpreview-x28-system-dot-windows-dot-frameworkelement-devexpress-dot-xpf-dot-printing-dot-iprintablecontrol-system-dot-string-x29.md

latest2.4 KB
Original Source

PrintHelper.ShowPrintPreview(FrameworkElement, IPrintableControl, 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.v25.2.dll

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public static Window ShowPrintPreview(
    FrameworkElement owner,
    IPrintableControl source,
    string documentName
)
vb
Public Shared Function ShowPrintPreview(
    owner As FrameworkElement,
    source As IPrintableControl,
    documentName As String
) As Window

Parameters

NameTypeDescription
ownerFrameworkElement

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

| | source | IPrintableControl |

An object implementing the IPrintableControl interface.

| | documentName | String |

A String value, specifying the document name.

|

Returns

TypeDescription
Window

A Window object.

|

See Also

Create a Report in Visual Studio

PrintHelper Class

PrintHelper Members

DevExpress.Xpf.Printing Namespace