Exporting charts
-
- Newbie
- Posts: 29
- Joined: Tue Oct 13, 2015 12:00 am
Exporting charts
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.
-
- Newbie
- Posts: 29
- Joined: Tue Oct 13, 2015 12:00 am
Re: Exporting charts
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".
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
Hello,
We've checked these calls seem to work fine:
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- Newbie
- Posts: 29
- Joined: Tue Oct 13, 2015 12:00 am
Re: Exporting charts
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?
Please could you check the eps export in particular, since that is a format that could be important in my application?
Re: Exporting charts
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |