Saving/Loading Series Style

Hi,
V4.4.0.51 & VS2003
I have been trying to save customized series style to XML file. I found this method:
this.chartControl1.Model.Series[iSeriesIndex].Style.WriteXml();

I want to you to confirm if it is possible to use following code to customize and save series style to a xml file?

int iSeriesIndex=0;
this.chartControl1.DisplayUserEditStylesDialog(iSeriesIndex); // modal dialog window
//saving the series style to xml file
System.Xml.XmlWriter xmlWriter=new System.Xml.XmlWriter();
this.chartControl1.Model.Series[iSeriesIndex].Style.WriteXml(xmlWriter);
....


Lan

2 Replies

AD Administrator Syncfusion Team March 20, 2007 01:55 PM UTC

Hi,
V4.4.0.51 & VS2003

I've built a sample for my question. I was thinking to save customized chart style by:
1. Save chart template(which has chart and legend style) to a xml file.
2 Save chart series style to a xml file.

then next time drawing the chart, load the chart template and series style from previous saved xml.

Button 'Save Tamplate' and 'Load Tamplate' work OK.

Button 'Save Customized Chart Style" saves series style to xml file.
Button 'Load Previous Saved Customized Chart Style" load xml file to series style.
But they are not working properly.

Could you look my code to make them work properly?
Thanks,

Lan




LineChart60.zip


AD Administrator Syncfusion Team March 22, 2007 02:43 AM UTC

Hi Lan,

Could you please create a Direct Trac incident so that we can discuss more about this issue? Please give the following forum id as Direct Trac incident title.

Forum ID #58136 - Saving/Loading Series Style

Thank you for using Syncfusion products.

Regards,
Rajesh

Loader.
Up arrow icon