Serie's datasource not restored when chart loaded from file

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
vasile
Newbie
Newbie
Posts: 9
Joined: Thu Jun 22, 2006 12:00 am

Serie's datasource not restored when chart loaded from file

Post by vasile » Fri Jun 23, 2006 12:34 pm

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Mon Jun 26, 2006 8:33 am

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.
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

Post Reply