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;
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?