Page 1 of 1
SaveChartToStream not found in FMX
Posted: Fri Mar 10, 2017 10:45 am
by 16879532
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?
Re: SaveChartToStream not found in FMX
Posted: Mon Mar 13, 2017 10:59 am
by yeray
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:
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;
And I got two exact charts after pressing the button:
- Project1_2017-03-13_12-00-17.png (31.11 KiB) Viewed 8537 times