Page 1 of 1

Exporting charts

Posted: Thu Dec 03, 2015 1:45 pm
by 17576646
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.

Re: Exporting charts

Posted: Fri Dec 04, 2015 4:15 am
by 17576646
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".

Re: Exporting charts

Posted: Fri Dec 04, 2015 12:05 pm
by yeray
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');

Re: Exporting charts

Posted: Fri Dec 04, 2015 1:31 pm
by 17576646
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?

Re: Exporting charts

Posted: Mon Dec 07, 2015 3:48 pm
by yeray
Hello,

I've added it to the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1386