Page 1 of 1

Save and Restore datasource Function

Posted: Thu Aug 25, 2005 10:41 pm
by 9237515
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 ??

Posted: Fri Aug 26, 2005 8:26 am
by narcis
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.

Ok hummmmm

Posted: Fri Aug 26, 2005 10:15 am
by 9237515
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.

Posted: Fri Aug 26, 2005 10:21 am
by narcis
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.