Page 1 of 1

Serie's datasource not restored when chart loaded from file

Posted: Fri Jun 23, 2006 12:34 pm
by 9241653
Hello,

I have a dbchart where each serie is linked to a different datasource.
This chart is saved to a file and restored later.

SaveChartToFile(Chart, SaveChartDialog->FileName, true, true);

restore:

LoadChartFromFile(Chart, OpenDialog->FileName);

Although the datasource link is stored in the file for each serie when I load the chart from file, the datasource is null for each serie and I have to reassign it by code.

I'm using TeeChart 7.07 for BCB6.

Is this a bug or I am missing something?

Thanks,
Vasile

Posted: Mon Jun 26, 2006 8:33 am
by narcis
Hi Vasile,

This is not a bug. When you are saving a chart into a file you can choose wether to save its data or not. However, datasources are not stored and need to be re-assigned programmatically.