Back to Devexpress

PrintHelper.ShowRibbonPrintPreview(FrameworkElement, LinkBase) Method

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

latest3.3 KB
Original Source

PrintHelper.ShowRibbonPrintPreview(FrameworkElement, LinkBase) Method

Creates a document from the specified link, 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,
    LinkBase link
)
vb
Public Shared Function ShowRibbonPrintPreview(
    owner As FrameworkElement,
    link As LinkBase
) As Window

Parameters

NameTypeDescription
ownerFrameworkElement

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

| | link | LinkBase |

A LinkBase descendant.

|

Returns

TypeDescription
Window

A Window object.

|

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowRibbonPrintPreview(FrameworkElement, LinkBase) 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.

reporting-wpf-printing-library-use-the-composite-link/CS/MainWindow.xaml.cs#L20

csharp
CompositeLink compositeLink = new CompositeLink(links);
    PrintHelper.ShowRibbonPrintPreview(this, compositeLink);
}

reporting-wpf-printing-library-use-the-composite-link/VB/MainWindow.xaml.vb#L25

vb
Dim compositeLink As New CompositeLink(links)
    PrintHelper.ShowRibbonPrintPreview(Me, compositeLink)
End Sub

See Also

PrintHelper Class

PrintHelper Members

DevExpress.Xpf.Printing Namespace