We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

ChartControl XML Serialization

Thread ID:





98196 Feb 13,2011 08:51 PM Feb 15,2011 03:31 AM General Discussion 2
Tags: General Discussion
Yannick Nabrin
Asked On February 13, 2011 08:51 PM


I'm trying to serialyze some Syncfusion objects, particularly ChartControls, and I not able to do it.

Do you have a method to serialyze/deserialyze a Charcontrol? When I say serialyze I don't mean export only the points, I want to serlialyze every public fields and be able to retrieve the whole charts easily?

An XLM serialization would be absolutely perfect !

Thank you very much in advance.


Yannick Nabrin
Replied On February 13, 2011 11:58 PM

This is what I'm trying to do, I have an XML fatal error

ChartControl chart = new ChartControl();
Stream s = null;
s = File.Create("C:\\HOMEWARE\\" + chart.Titles[0].Text + ".xml");

System.Xml.XmlWriter xw = new System.Xml.XmlTextWriter(s, System.Text.Encoding.UTF8);

System.Xml.Serialization.XmlSerializer xs = new System.Xml.Serialization.XmlSerializer(chart.Series.GetType());
xs.Serialize(xw, chart.Series);

Saravanan A [Syncfusion]
Replied On February 15, 2011 03:31 AM

Hi Yannick,

Thanks for choosing Syncfusion products.

Based on your requirement we have created a simple sample. Please download the sample from below location.

Sample: http://www.syncfusion.com/uploads/redirect.aspx?&team=support&file=Serialization-660479702.zip

For further reference on serialization/deserialization you can refer Essential studio(2011, vol1) sample browser. In which we have already created a sample for serialization in the following path.

Path: Essential Chart/User interaction/Serialization Demo

Please let us know if you have any queries.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.