Page 1 of 1

SaveChartToFile and remember Data Source

Posted: Mon Jul 11, 2005 5:56 pm
by 9340689
Hi:

Is there a way to save a TDBChart so that when it is reloaded it remembers the Data Source as Dataset/Labels/XVals/YVals. It seems that the data is saved but the Data Source is set to manual on reload, so the original source of the data is not remembered. I want users to be able to customize the chart for an associated dataset and then when they reopen at a later point, have the (possibly) new dataset points reflected in the chart.

Thanks,
Mark

Posted: Tue Jul 12, 2005 9:01 am
by narcis
Hi Mark,

When saving a chart to a file it doesn't save the dataset. However data can be saved. When loading the file you should reassign the dataset programmatically. For more information on how to do that you could have a look at "Tutorial 8 - Database access". You will find the tutorials at the documentation folder at TeeChart program group.