Page 1 of 1

How did LoadChartFromFile work ?

Posted: Tue Jun 19, 2007 6:37 am
by 9349911
Hi !

I have a small sample application with a Tchart component. There is also a button with this code:

Code: Select all

procedure TForm1.BitBtn1Click(Sender: TObject);
var tmpChart : TCustomChart;
begin
    tmpChart:=TCustomChart(Chart1);
    LoadChartFromFile(tmpChart,'E:\Documents and Settings\Administrator\Desktop\TeeChartHolger.tee');
    Chart1:=TChart(tmpChart);
end;
I want to load a Tee file from my harddrive.

When I run this code by pressing the button I got an error like this: "Class TFastLineSeries not found". TeeStore and Series are included in the uses part.

What is wrong here? I tried to add five FastLines to the chart (because the Tee file has the same number FastLines), but it ends with the same error.

Can you give me a hint what I´m doing wrong?

Posted: Tue Jun 19, 2007 6:42 am
by 9349911