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

How to export Chart to Excel & PDF

3 Answers 211 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Vishnu
Top achievements
Rank 1
Vishnu asked on 04 Aug 2014, 11:38 AM
I am using Telerik 2014 version. I checked, radchart can export only jpg or png. but i want export the chart to Excel as well as PDF with some other data.
Please let me know how to do.... 


Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 04 Aug 2014, 12:29 PM

Hi Vishnu,

Please take a look into this code library to export RadChart to PDF.

Thanks,
Princy.

0
Vishnu
Top achievements
Rank 1
answered on 08 Aug 2014, 11:51 AM
Thanks for your respond Princy.

Can you please suggest, how to export data with Chart into Excel.
Am struggling a lot to achieve this.
0
Princy
Top achievements
Rank 2
answered on 11 Aug 2014, 03:55 AM
Hi Vishnu,

RadChart is an image generated by the server and as such can be exported as image only. Unfortunately RadChart cannot be exported to MS Excel. One option for you to export chart as an image -  use  'Save' method as follows.

C#:
RadChart1.Save(Server.MapPath(@"~/image.png"), System.Drawing.Imaging.ImageFormat.Png);

You can also take use of this forum thread which discusses how to put it in the memory stream which doesn't save the image to the server first.
 
Thanks,
Princy.
Tags
Chart (Obsolete)
Asked by
Vishnu
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Vishnu
Top achievements
Rank 1
Share this question
or