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.v19.2.UI.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
stream | Stream | A Stream object to which the created document is exported. |
Remarks
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ExportToPdf(Stream) method.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.