Hi, I am using Teechart standard 2016 19 with Delphi Seattle in an FMX application
I did put FMXTee.Store in the uses clause.
The SaveChartToStream is not found.
What do I do wrong?
SaveChartToStream not found in FMX
Re: SaveChartToStream not found in FMX
Hello,
Check the paths.
I've tried to reproduce the problem with a new simple FMX application. I've only dragged a TButton, a TPanel and two TCharts (one of the charts on the form and the second on the panel).
Here the code I tested:
And I got two exact charts after pressing the button:
Check the paths.
I've tried to reproduce the problem with a new simple FMX application. I've only dragged a TButton, a TPanel and two TCharts (one of the charts on the form and the second on the panel).
Here the code I tested:
Code: Select all
uses FMXTee.Store, FMXTee.Constants, FMXTee.Series;
procedure TForm1.FormCreate(Sender: TObject);
begin
Chart1.Title.Text.Text:=TeeMsg_Version;
Chart1.AddSeries(TBarSeries).FillSampleValues;
RegisterTeeStandardSeries;
end;
procedure TForm1.Button1Click(Sender: TObject);
var tmpStream: TMemoryStream;
begin
tmpStream:=TMemoryStream.Create;
SaveChartToStream(Chart1, tmpStream);
tmpStream.Position:=0;
LoadChartFromStream(Chart2, tmpStream);
end;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |