Exporting charts

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
riskassessor
Newbie
Newbie
Posts: 29
Joined: Tue Oct 13, 2015 12:00 am

Exporting charts

Post by riskassessor » Thu Dec 03, 2015 1:45 pm

I've just today upgraded from VCL/FMX Standard to Pro and I am trying to understand how to export a chart in the wide variety of possible formats. I'm really struggling to understand anything from the help or the demo program. Could you please provide two or three examples of how I export from a firemonkey application to different image formats and then I'm sure I can work the rest out for myself? Thank you.

riskassessor
Newbie
Newbie
Posts: 29
Joined: Tue Oct 13, 2015 12:00 am

Re: Exporting charts

Post by riskassessor » Fri Dec 04, 2015 4:15 am

I eventually figured out that the relevant commands include:

Chart1.SaveToMetafile(SaveDialog2.FileName)
Chart1.SaveToMetafileEnh(SaveDialog2.FileName)
TeeSaveToPSFile(Chart1, SaveDialog2.FileName, Trunc(Chart1.Width), Trunc(Chart1.Height))
TeeSaveToPDFFile(Chart1, SaveDialog2.FileName, Trunc(Chart1.Width), Trunc(Chart1.Height))

However, the resulting wmf, emf and eps files are somehow incorrect. Inserting the wmf and emf files into Word, the images are blank. Trying to load the eps file into Adobe Illustrator, I get the message "The operation cannot complete because of an unknown error".

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

Re: Exporting charts

Post by Yeray » Fri Dec 04, 2015 12:05 pm

Hello,

We've checked these calls seem to work fine:

Code: Select all

  Chart1.SaveToBitmapFile('C:\tmp\exports\FMXTest.png');
  Chart1.SaveToBitmapFile('C:\tmp\exports\FMXTest.jpeg');
  Chart1.SaveToBitmapFile('C:\tmp\exports\FMXTest.gif');
  Chart1.SaveToBitmapFile('C:\tmp\exports\FMXTest.bmp');
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

riskassessor
Newbie
Newbie
Posts: 29
Joined: Tue Oct 13, 2015 12:00 am

Re: Exporting charts

Post by riskassessor » Fri Dec 04, 2015 1:31 pm

I notice you didn't check the exports to wmf, emf and eps.

Please could you check the eps export in particular, since that is a format that could be important in my application?

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

Re: Exporting charts

Post by Yeray » Mon Dec 07, 2015 3:48 pm

Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1386
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