Export a Chart
This document lists the formats to which a chart control for Windows Forms can be exported. To learn about exporting a Web chart, see How to: Export a Chart.
You can export your ChartControl to an image using the ChartControl.ExportToImage method. For a code example, see How to: Export a Chart to Image.
To export it to any of the following formats, the XtraPrinting library is required.
- ChartControl.ExportToHtml;
- ChartControl.ExportToMht;
- ChartControl.ExportToPdf;
- ChartControl.ExportToRtf;
- ChartControl.ExportToXls;
- ChartControl.ExportToXlsx.
The following examples demonstrate some of these methods.
- How to: Export a Chart to HTML and MHT;
- How to: Export a Chart to PDF;
- How to: Export a Chart to XLS.
See Also