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.Print(PrintSizeMode) Method

Invokes the Print dialog and prints the current chart with the specified size mode.

Namespace: DevExpress.Xpf.Charts

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

NuGet Package: DevExpress.Wpf.Charts

#Declaration

public void Print(
    PrintSizeMode sizeMode
)

#Parameters

Name Type Description
sizeMode PrintSizeMode

The value specifying which size mode the chart must use when the chart control is printed.

#Remarks

This method displays the standard Print dialog, which allows an end-user to print the chart, as well as select the printer (if required), specify the range of pages to print, the number of copies, etc.

To print the document immediately without invoking any dialogs, use the ChartControlBase.PrintDirect method.

To display the DevExpress Document Preview, use one of the following methods.

Name Description
ChartControlBase.ShowPrintPreview Creates a print document and displays the Print Preview of the document.
ChartControlBase.ShowPrintPreviewDialog Creates a print document and displays the Print Preview of the document as a modal window.
ChartControlBase.ShowRibbonPrintPreview Creates a print document and displays the Print Preview with the Ribbon toolbar of the document.
ChartControlBase.ShowRibbonPrintPreviewDialog Creates a print document and displays the Print Preview with the Ribbon toolbar of the document as a modal window.

To export the chart, use the appropriate ExportTo~ method (e.g., ChartControlBase.ExportToHtml, ChartControlBase.ExportToPdf, etc.)

Important

The chart can be previewed, printed and exported only if the DXPrinting Library is available. Make sure you add a reference to the DevExpress.Xpf.Printing.v24.2 assembly.

See Also