Save as / export chart?

9 posts, 0 answers
  1. James
    James avatar
    119 posts
    Member since:
    Mar 2009

    Posted 30 May 2009 Link to this post

    Hi,

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

    Thanks, James.
  2. Velin
    Admin
    Velin avatar
    391 posts

    Posted 01 Jun 2009 Link to this post

    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.
  3. James
    James avatar
    119 posts
    Member since:
    Mar 2009

    Posted 01 Jun 2009 Link to this post

    Thanks! (Sorry for not spotting this, but my help file isn't working at the moment.)
  4. Rob
    Rob avatar
    11 posts
    Member since:
    Jul 2008

    Posted 22 Jun 2009 Link to this post

    I cannot find any Save method exposed by RadChart. Has this method been removed from the chart interface?
  5. Velin
    Admin
    Velin avatar
    391 posts

    Posted 24 Jun 2009 Link to this post

    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.
  6. James
    James avatar
    119 posts
    Member since:
    Mar 2009

    Posted 24 Jun 2009 Link to this post

    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.
  7. Velin
    Admin
    Velin avatar
    391 posts

    Posted 26 Jun 2009 Link to this post

    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.
  8. James
    James avatar
    119 posts
    Member since:
    Mar 2009

    Posted 26 Jun 2009 Link to this post

    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.
  9. Velin
    Admin
    Velin avatar
    391 posts

    Posted 30 Jun 2009 Link to this post

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