SaveChartToStream not found in FMX

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
JCG_NL
Newbie
Newbie
Posts: 2
Joined: Fri Nov 04, 2016 12:00 am

SaveChartToStream not found in FMX

Post by JCG_NL » Fri Mar 10, 2017 10:45 am

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?

Yeray
Site Admin
Site Admin
Posts: 9622
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: SaveChartToStream not found in FMX

Post by Yeray » Mon Mar 13, 2017 10:59 am

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
Project1_2017-03-13_12-00-17.png (31.11 KiB) Viewed 8674 times
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply