Store TCHart, preserving datasources links

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
H.Hasenack
Newbie
Newbie
Posts: 16
Joined: Thu Nov 10, 2011 12:00 am

Store TCHart, preserving datasources links

Post by H.Hasenack » Tue Jul 24, 2012 11:13 am

I have created my own datasource to link my custom data to TCHart, and it works like a charm.

But now I want to allow my user to create charts and store them (as a template) including the data source links rather than the data itself.

Is there an example for doing this? Any tips?

Regards - Hans

Yeray
Site Admin
Site Admin
Posts: 9602
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Store TCHart, preserving datasources links

Post by Yeray » Thu Jul 26, 2012 3:18 pm

Hi Hans,

I'm afraid TeeChart doesn't store the datasource connection. When you apply a connection TeeChart internally loops into the dataset and calls the according Add/AddXY function so it ends in an internal array of values, as without any datasource connection.
So you should do it manually too.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply