A newer version of this page is available. Switch to the current version.

ChartOptionsPrint Class

Provides print options for the chart control.

Namespace: DevExpress.XtraCharts.Printing

Assembly: DevExpress.XtraCharts.v18.2.dll


public class ChartOptionsPrint :
Public Class ChartOptionsPrint
    Inherits BaseOptions
    Implements IXtraSupportShouldSerialize

Related API Members

The following members accept/return ChartOptionsPrint objects:


The ChartOptionsPrint class provides a set of properties that control how the chart is printed. These properties can be accessed via the control's ChartControl.OptionsPrint property.


The following example demonstrates how to print a ChartControl, or show its Print Preview. To do this, you should use either the ChartControl.Print or ChartControl.ShowPrintPreview methods.


A chart can be printed and previewed only if the XtraPrinting Library is available. To verify that printing the chart is possible, use the ChartControl.IsPrintingAvailable property.

When printing a chart, the current print settings will be used to represent a chart. Note that you can access and change these settings via the ChartControl.OptionsPrint property. End-users manually select the printer settings by clicking the Customize toolbar button (PrintPreviewBar.Customize) in a chart's preview, and setting the required options in the Printable Component Editor.

using DevExpress.XtraCharts;
// ...

private void ShowChartPreview(ChartControl chart) {
    // Check whether the ChartControl can be previewed.
    if (!chart.IsPrintingAvailable) {
        MessageBox.Show("The 'DevExpress.XtraPrinting.v7.2.dll' is not found", "Error");
    // Open the Preview window.

private void PrintChart(ChartControl chart) {
    // Check whether the ChartControl can be printed.
    if (!chart.IsPrintingAvailable) {
        MessageBox.Show("The 'DevExpress.XtraPrinting.v7.2.dll' is not found", "Error");
    // Print.


See Also