Hi Ramachandran,
Thanks for using Syncfusion Products.
If your intention is to save and load template through programmatically means, please use the following code snippet in your application.
ChartTemplate temp = new ChartTemplate(typeof(ChartControl));
//Save Template:
private void Save_Click(object sender, EventArgs e)
{
this.chartControl1.ShowContextMenu = true;
temp.Scan(chartControl1);
MemoryStream ms = new MemoryStream();
temp.Save("chart.xml");
MessageBox.Show("Saved properly");
}
//Load Template
private void Load_Click(object sender, EventArgs e)
{
temp.Apply(chartControl2);
temp.Load("chart.xml");
MessageBox.Show("Loaded properly");
}
Please refer the following sample.
http://websamples.syncfusion.com/samples/Chart.Windows/F64234/main.htmThe above sample which illustrates how to save and load template programmatically.
Please let me know if this helps.
Thanks and Regards,
Rashidha.