Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

ChartControlBase.ShowRibbonPrintPreviewDialog(Window) Method

Creates a print document 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.v24.2.dll

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void ShowRibbonPrintPreviewDialog(
    Window owner
)

#Parameters

Name Type Description
owner Window

The Print Preview owner.

#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