Save and Restore datasource Function

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
MD
Newbie
Newbie
Posts: 15
Joined: Tue Jun 28, 2005 4:00 am
Location: France

Save and Restore datasource Function

Post by MD » Thu Aug 25, 2005 10:41 pm

Hi,

With D7 and TeeChart V7.04 Pro Vcl

Step 1
When the user add function manually by editor
and affect the series source>> result Ok on Display.

Step 2
In my code, i store Chart in Stream >> ok

Step 3
I restore Stream To Chart, i retreive all series + function >> Ok

but the series function as no datasource setting ??

i try control by code, but no result ??
//----Autorise le recalcul des Fonctions
for i:=0 to Chart1.SeriesCount - 1 do
if Assigned(Chart1.Series.FunctionType) then begin
Chart1.Series.CheckDataSource;
Chart1.Series.FunctionType.EndUpdate;
Chart1.Series.FunctionType.ReCalculate;
end;

Who take for Save and Restore function if this is create by end user ??

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

Post by Narcís » Fri Aug 26, 2005 8:26 am

Hi MD,

Importing and exporting a chart should keep functions datasources and you shouldn't do anything special, just load the stored chart.

Can you please send us an example we can run "as-is" to reproduce the problem here? You can post your files at [url]news://www.steema.net/steema.public.attachments[/url] newsgroup.
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

MD
Newbie
Newbie
Posts: 15
Joined: Tue Jun 28, 2005 4:00 am
Location: France

Ok hummmmm

Post by MD » Fri Aug 26, 2005 10:15 am

if i understand this respond,

I code myself the store and restaure Function datasource.

in fact i have already coding this solution and the result it is Ok.

Thank.

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

Post by Narcís » Fri Aug 26, 2005 10:21 am

Hi MD,

No, I meant that you shouldn't do any additional coding. I did a test here exporting a chart with a series having a function as datasource and when I imported it, function series worked fine.
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