Back to Devexpress

SankeyDiagramControl.ShowPrintPreview(Window, String) Method

wpf-devexpress-dot-xpf-dot-charts-dot-sankey-dot-sankeydiagramcontrol-dot-showprintpreview-x28-system-dot-windows-dot-window-system-dot-string-x29.md

latest3.2 KB
Original Source

SankeyDiagramControl.ShowPrintPreview(Window, String) Method

Creates a document that contains the Sankey Diagram Control and displays it in the Print Preview window. The document name, the Print Preview owner are passed as parameters.

Namespace : DevExpress.Xpf.Charts.Sankey

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public void ShowPrintPreview(
    Window owner,
    string documentName
)
vb
Public Sub ShowPrintPreview(
    owner As Window,
    documentName As String
)

Parameters

NameTypeDescription
ownerWindow

The Print Preview’s owner.

| | documentName | String |

The name of the document.

|

Remarks

The following example uses the ShowPrintPreview method to display the Print Preview:

csharp
sankeyDiagramControl1.ShowPrintPreview(this,"Sankey Document");
vb
sankeyDiagramControl1.ShowPrintPreview(Me, "Sankey Document")

Use the methods below to show the Print Preview with other settings:

NameDescription
ShowPrintPreviewDialog(Window, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document as a modal window.
ShowRibbonPrintPreview(Window, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document with a Ribbon toolbar.
ShowRibbonPrintPreviewDialog(Window, String)Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document with a Ribbon toolbar as a modal window.

See Also

ShowPrintPreview(Window, String, String)

ShowPrintPreview(Window)

SankeyDiagramControl Class

SankeyDiagramControl Members

DevExpress.Xpf.Charts.Sankey Namespace