Skip to main content
All docs
V21.2

SankeyDiagramControl.ShowPrintPreviewDialog(Window, String) Method

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

Namespace: DevExpress.Xpf.Charts.Sankey

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

Declaration

public void ShowPrintPreviewDialog(
    Window owner,
    string documentName
)

Parameters

Name Type Description
owner Window

The Print Preview’s owner.

documentName String

The name of the document.

Remarks

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

sankeyDiagramControl1.ShowPrintPreviewDialog(this,"Sankey Document");

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

Name Description
ShowPrintPreview(Window, String) Creates a document that contains the Sankey Diagram Control and displays the Print Preview of the document.
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