Problem with LoadChartFromFile
Posted: Thu Feb 23, 2006 2:40 pm
Hi,
I have used the following example( from your examples):
procedure TForm1.ButtonSaveClick(Sender: TObject);
begin
SaveChartToFile(Chart1,'C:\test.tee');
end;
procedure TForm1.ButtonLoadClick(Sender: TObject);
var tmpChart:TCustomChart;
begin
Chart1.Free; //assuming Chart1 is already on the Form
tmpChart:=TChart.Create(Self)
LoadChartfromFile(tmpChart,'c:\test.tee');
Chart1 := tmpChart as TChart;
Chart1.Parent:=Self;
end;
I cant get this to work, I get the follwing exception "Class TBarSeries not found". Does anyone know what might cause this problem, is there something I have forgotten?
Best regards
Johan Ingemansson
I have used the following example( from your examples):
procedure TForm1.ButtonSaveClick(Sender: TObject);
begin
SaveChartToFile(Chart1,'C:\test.tee');
end;
procedure TForm1.ButtonLoadClick(Sender: TObject);
var tmpChart:TCustomChart;
begin
Chart1.Free; //assuming Chart1 is already on the Form
tmpChart:=TChart.Create(Self)
LoadChartfromFile(tmpChart,'c:\test.tee');
Chart1 := tmpChart as TChart;
Chart1.Parent:=Self;
end;
I cant get this to work, I get the follwing exception "Class TBarSeries not found". Does anyone know what might cause this problem, is there something I have forgotten?
Best regards
Johan Ingemansson