SaveChartToFile and remember Data Source

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
Mark
Newbie
Newbie
Posts: 3
Joined: Fri Jan 21, 2005 5:00 am

SaveChartToFile and remember Data Source

Post by Mark » Mon Jul 11, 2005 5:56 pm

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

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

Post by Narcís » Tue Jul 12, 2005 9:01 am

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.
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