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

Save as / export chart?

8 Answers 138 Views
Chart
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 30 May 2009, 05:31 PM
Hi,

Is it possible to save the chart as a graphic such as a bmp?

Thanks, James.

8 Answers, 1 is accepted

Sort by
0
Velin
Telerik team
answered on 01 Jun 2009, 01:29 PM
Hi James,

Yes, RadChart exposes a Save() method with three different overloads. You could export an image of your RadChart to a file or a Stream . Here is the code:
RadChart1.Save(@"c:\savedchart.gif", System.Drawing.Imaging.ImageFormat.Gif); 
 
Greetings,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
James
Top achievements
Rank 1
answered on 01 Jun 2009, 03:11 PM
Thanks! (Sorry for not spotting this, but my help file isn't working at the moment.)
0
Rob
Top achievements
Rank 1
answered on 22 Jun 2009, 02:34 PM
I cannot find any Save method exposed by RadChart. Has this method been removed from the chart interface?
0
Velin
Telerik team
answered on 24 Jun 2009, 09:00 AM
Hi Rob,

Please, accept our apologies for this misunderstanding.
RadChart for Silverlight still does not support this functionality and the answer you have seen is about another RadChart product.

Regards, Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
James
Top achievements
Rank 1
answered on 24 Jun 2009, 12:28 PM
Hi Velin,

This is something of a surprise. I'd just put saving graphs as graphics on the 'it does this' list and moved on. Is there no way for the user to save a graph as any kind of graphic then?

Thanks, James.
0
Velin
Telerik team
answered on 26 Jun 2009, 10:19 AM
Hello James,

I've made a mistake when answering your question, having in mind another RadChart product(such as RadChart for WPF). RadChart for Silverlight still does not support export to image due to limitations of the Silverlight platform.

Please, accept my apologies.

Sincerely,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
James
Top achievements
Rank 1
answered on 26 Jun 2009, 12:48 PM
Hi Velin,
I can see how the mistake is easy to make! Is there a possible workaround? Maybe by using a library running on the server to create the graphic?
Best wishes, James.
0
Velin
Telerik team
answered on 30 Jun 2009, 12:04 PM
Hello James,

Unfortunately, there is no trivial way to save a visual element to image with Silverlight 2. The situation will change with the release of Silverlight 3 when a WritableBitmap API will be available. The Q3.2009 version of RadChart will be build with the Silverlight 3 runtime and most probably will expose this option through a SaveFileDialog.

Regards,
Velin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Chart
Asked by
James
Top achievements
Rank 1
Answers by
Velin
Telerik team
James
Top achievements
Rank 1
Rob
Top achievements
Rank 1
Share this question
or