How to save the chart template without getting a popup in WF Chart
This article explains how to avoid the following pop-up window while showing up for saving the chart template at load time.
|
If your requirement is to save the chart template (series properties and the point properties, which was saved in XML file) without getting that pop-up then, please refer the following code sample instead of saving like this.
[C#]
..
var template = new ChartTemplate(typeof(ChartControl));
template.Scan(this.chartControl1);
template.Save("TemplateName.xml");
..
Chart Template saving location is bin->debug->FileName.xml.
See also
How to bind the data source via chart wizard
How to create a real-time chart
How do I print a Chart
How to create Chart in VB .NET Windows Forms

