Invisible TChart export bug

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
alex
Newbie
Newbie
Posts: 9
Joined: Tue Aug 16, 2005 4:00 am

Invisible TChart export bug

Post by alex » Thu May 11, 2006 11:12 am

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

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Post by Narcís » Fri May 12, 2006 3:05 pm

Hi Alex,

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
Image Image Image Image Image Image
Instructions - How to post in this forum

alex
Newbie
Newbie
Posts: 9
Joined: Tue Aug 16, 2005 4:00 am

Post by alex » Mon May 15, 2006 7:22 am

Narcís!

Now all is OK. Thank you!

Alex

Post Reply