How did LoadChartFromFile work ?

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

How did LoadChartFromFile work ?

Post by moelski » Tue Jun 19, 2007 6:37 am

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?

moelski
Advanced
Posts: 212
Joined: Mon Apr 23, 2007 12:00 am
Location: Germany
Contact:

Post by moelski » Tue Jun 19, 2007 6:42 am


Post Reply