# Export

The **RadChartView** suite does not have a built-in functionality for exporting the chart, but there are several ways that you can utilize to achieve that.

## Export RadChartView to PDF

You can export the charting components using the **ExportUIElement** example which implements exporting of UIElements with the [Document Processing Libraries](https://www.telerik.com/products/wpf/documentation/document-processing-libraries) library. You can read about the example in the [Export Support](https://www.telerik.com/products/wpf/documentation/common-information/common-export-support) common article.

> You can find a runnable example in our [GitHub](https://github.com/telerik/document-processing-sdk) repository: [Export UI Element to PDF](https://github.com/telerik/document-processing-sdk/tree/master/PdfProcessing/ExportUIElement).

## Export RadChartView to Image

You can export the chart to an image using the **Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage()** method.

The following code snippets demonstrate how to use the ExportToImage() method.

```XAML
<telerik:RadCartesianChart x:Name="chart" />
```

```C#
string filename = "ExportedChart.png";
using (Stream fileStream = File.Open(filename, FileMode.OpenOrCreate))
{
    Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(this.chart, fileStream, new PngBitmapEncoder());
}
```

> tip The ExportToImage() method expects that the UI element which will be exported is **measured and arranged** - otherwise, an exception will be thrown.

## See Also

* [Overview](https://www.telerik.com/products/wpf/documentation/controls/radchartview/overview)
* [Getting Started](https://www.telerik.com/products/wpf/documentation/controls/radchartview/getting-started/introduction)
* [SDK Examples](https://www.telerik.com/products/wpf/documentation/controls/radchartview/sdk-examples)
* [Export Support](https://www.telerik.com/products/wpf/documentation/common-information/common-export-support)
* [Document Processing Libraries](https://www.telerik.com/products/wpf/documentation/document-processing-libraries)
