ChartControl.ExportToPdf(Stream) Method

Exports the chart’s layout to a PDF document and sends it to the specified stream.

Namespace: DevExpress.XtraCharts

Assembly: DevExpress.XtraCharts.v21.1.UI.dll


public void ExportToPdf(
    Stream stream


Name Type Description
stream Stream

A Stream object to which the created document is exported.


A chart’s layout can only be exported if the XtraPrinting Library and Pdf.Core libraries are available. Use the ChartControl.IsPrintingAvailable property, to check whether the chart can be exported.

See Also