Hello!
If I open a form with invisible TChart (for example TChart is on the second page of TabControl but first page is active) and try to export TChart (Chart.Export.Image.Metafile.Save("TeeChartMetaFile.emf") or Chart.Export.Image.Bitmap.Save("TeeChartBitmap.bmp")) pictures have wrong size, moreover, metafile is very small and empty.
But if I at first make TChart visible (by click on the second page of TabControl) export works correctly.
I use last TChart version (8 of May).
I send my simple application with this bug to Narcis Calvet e-mail.
What can I do?
Thanks,
Alex
Invisible TChart export bug
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Alex,
Thanks for the example. We could reproduce your problem here. It works fine using this code:
Thanks for the example. We could reproduce your problem here. It works fine using this code:
Code: Select all
private void button4_Click(object sender, EventArgs e)
{
tChart1.Export.Image.Metafile.Width = tChart1.Width;
tChart1.Export.Image.Metafile.Height = tChart1.Height;
tChart1.Export.Image.Metafile.Save("TeeChartMetaFile.emf");
}
private void button5_Click(object sender, EventArgs e)
{
tChart1.Export.Image.Bitmap.Width = tChart1.Width;
tChart1.Export.Image.Bitmap.Height = tChart1.Height;
tChart1.Export.Image.Bitmap.Save("TeeChartBitmap.bmp");
}
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |