This is a migrated thread and some comments may be shown as answers.

RadCatesianChart Export To Image?

2 Answers 162 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Hovhannes
Top achievements
Rank 1
Hovhannes asked on 23 Jan 2012, 02:16 PM
Dear experts,

I was used RadChart which work almost fine, but as the RadCatesianChart is new one and has some good performance and new features i desided to use it instead of  RadChart, but now i have some problem I can not find ExportToImage feature. Is it has such kind a feature and if no, is it planned to add it in the future releases?

Thanks,
Hovhannes

2 Answers, 1 is accepted

Sort by
0
Accepted
Petar Marchev
Telerik team
answered on 26 Jan 2012, 10:56 AM
Hi,

Thank you for contacting Telerik Support!

You can use the ExportToImage extension method as demonstrated below:
private void Export_Click(object sender, RoutedEventArgs e)
{
 SaveFileDialog sfd = new SaveFileDialog();
 sfd.DefaultExt = "png";
 sfd.Filter = "PNG File (*.png) | *.png";
 if ((bool)sfd.ShowDialog())
 {
   using (var stream = sfd.OpenFile())
   {
     Telerik.Windows.Media.Imaging.ExportExtensions.ExportToImage(RadChart1, stream, new PngBitmapEncoder());
   }
 }
}

Hope this helps.

Regards,
Petar Marchev
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Hovhannes
Top achievements
Rank 1
answered on 26 Jan 2012, 04:16 PM
Great! Thank you very much!
Tags
ChartView
Asked by
Hovhannes
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
Hovhannes
Top achievements
Rank 1
Share this question
or