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.
Syncfusion Feedback

ChartControl XML Serialization

Thread ID:

Created:

Updated:

Platform:

Replies:

98196 Feb 14,2011 01:51 AM UTC Feb 15,2011 08:31 AM UTC General Discussion 2
loading
Tags: General Discussion
Yannick Nabrin
Asked On February 14, 2011 01:51 AM UTC

Hi,

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


Yannick Nabrin
Replied On February 14, 2011 04:58 AM UTC

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 08:31 AM UTC

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.

Thanks,
Saravanan



CONFIRMATION

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.

Warning Icon 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.Close Icon

;