Back to Devexpress

ChartControlBase.ShowRibbonPrintPreviewDialog(Window, String) Method

wpf-devexpress-dot-xpf-dot-charts-dot-chartcontrolbase-dot-showribbonprintpreviewdialog-x28-system-dot-windows-dot-window-system-dot-string-x29.md

latest2.3 KB
Original Source

ChartControlBase.ShowRibbonPrintPreviewDialog(Window, String) Method

Creates a print document with the specified name from a chart and displays the document using the modal Print Preview window with the Ribbon toolbar and the specified owner.

Namespace : DevExpress.Xpf.Charts

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

NuGet Package : DevExpress.Wpf.Charts

Declaration

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

Parameters

NameTypeDescription
ownerWindow

The Print Preview owner.

| | documentName | String |

The name which should be used for the document to be displayed in the Print Preview.

|

Remarks

The Print Preview displays the chart as it will appear when printed. Note that the chart can be previewed and printed only if the DXPrinting Library is available.

To print the chart, use the ChartControlBase.PrintDirect and ChartControlBase.Print methods. To export the chart, use the appropriate ExportTo~ method (e.g., ChartControlBase.ExportToHtml, ChartControlBase.ExportToPdf, etc.)

See Also

ChartControlBase Class

ChartControlBase Members

DevExpress.Xpf.Charts Namespace