Save and Restore datasource Function
Posted: 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 ??
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 ??