Back to Devexpress

PrintHelper.ShowRibbonPrintPreview(FrameworkElement, IPrintableControl, String, String) Method

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

latest2.6 KB
Original Source

PrintHelper.ShowRibbonPrintPreview(FrameworkElement, IPrintableControl, String, String) Method

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

Namespace : DevExpress.Xpf.Printing

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

NuGet Package : DevExpress.Wpf.Printing

Declaration

csharp
public static Window ShowRibbonPrintPreview(
    FrameworkElement owner,
    IPrintableControl source,
    string documentName,
    string title
)
vb
Public Shared Function ShowRibbonPrintPreview(
    owner As FrameworkElement,
    source As IPrintableControl,
    documentName As String,
    title 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.

| | title | String |

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

|

Returns

TypeDescription
Window

A Window object.

|

See Also

PrintHelper Class

PrintHelper Members

DevExpress.Xpf.Printing Namespace