How to export Chart to Excel & PDF

Thread is closed for posting
4 posts, 0 answers
  1. Vishnu
    Vishnu avatar
    31 posts
    Member since:
    Jul 2012

    Posted 04 Aug 2014 Link to this post

    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.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 04 Aug 2014 in reply to Vishnu Link to this post

    Hi Vishnu,

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

    Thanks,
    Princy.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vishnu
    Vishnu avatar
    31 posts
    Member since:
    Jul 2012

    Posted 08 Aug 2014 in reply to Princy Link to this post

    Thanks for your respond Princy.

    Can you please suggest, how to export data with Chart into Excel.
    Am struggling a lot to achieve this.
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 10 Aug 2014 in reply to Vishnu Link to this post

    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.
Back to Top