ChartControlBase.ShowRibbonPrintPreviewDialog(Window, String, String, PrintSizeMode) Method
Creates a print document with the specified name from a chart with the specified print size mode and displays the document using the modal Print Preview window with the Ribbon toolbar and the specified owner and title.
Namespace: DevExpress.Xpf.Charts
Assembly: DevExpress.Xpf.Charts.v24.1.dll
NuGet Package: DevExpress.Wpf.Charts
Declaration
public void ShowRibbonPrintPreviewDialog(
Window owner,
string documentName,
string title,
PrintSizeMode sizeMode
)
Parameters
Name | Type | Description |
---|---|---|
owner | Window | The Print Preview owner. |
documentName | String | The name which should be used for the document to be displayed in the Print Preview. |
title | String | The title of the Print Preview. |
sizeMode | PrintSizeMode | The size mode which the chart must use when the chart control is printed. |
Remarks
The Print Preview dialog 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.)