New to Telerik UI for WinForms? Download free 30-day trial

Export

RadChartView supports export to image functionality.

You can export the RadChartVew content by using one of the following overloads of the ExportToImage method:

  • ExportToImage(Stream stream, Size size)

  • ExportToImage(Stream stream, Size size, ImageFormat imageFormat)

  • ExportToImage(string filePath, Size size)

  • ExportToImage(string filePath, Size size, ImageFormat imageFormat)

Export to Image


string filePath = @"..\..\..\exprtedChart.png";
this.radChartView1.ExportToImage(filePath, this.radChartView1.Size, System.Drawing.Imaging.ImageFormat.Png);

Dim filePath As String = "..\..\..\exprtedChart.png"
Me.RadChartView1.ExportToImage(filePath, Me.RadChartView1.Size, System.Drawing.Imaging.ImageFormat.Png)

Figure 1: Exported Chart

WinForms RadChartView Exported Chart

If you need to export the chart data to a document, you can use a RadDocument and insert the exported image into it. Afterwards, you can use the RadRichTextEditor 's export functionality.

See Also

In this article