Save Chart to Jpeg Border problem (regression from version2)

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Save Chart to Jpeg Border problem (regression from version2)

Post by qcrnd » Sun Apr 19, 2009 5:50 am

Hi
I noticed a regression from version 2. When saving a chart to a jpeg there is a always a border surrounding the jpeg even if the chart itself doesnt have a border. This didnt happen in version 2.
This causes a problem in documents that i create that have the charts embedded.

I have uploaded a sample TChartV3Tester.zip that save a chart into jpeg (just click the save jpeg button)
Please take the second upload , the first one has an illegal reference.
Please help
Thanks

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Mon Apr 20, 2009 10:45 am

Hello gcrnd,

I could reproduce your problem and I have added to the list of Bug Report with number [TF02014091] we will try to fix it for next versions of TeeChart .NET.


Thanks, for noticed.
Best Regards,
Sandra Pazos / 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

qcrnd
Advanced
Posts: 214
Joined: Mon Sep 04, 2006 12:00 am

Post by qcrnd » Mon Apr 20, 2009 12:54 pm

Hi Narcis
Thanks for the response. Please raise the priority since we now have regressions in our application which do not look good .
Thanks.

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

Post by Narcís » Mon Apr 20, 2009 1:18 pm

Hi qcrnd,

This is a high priority issue already.
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

Sandra
Site Admin
Site Admin
Posts: 3132
Joined: Fri Nov 07, 2008 12:00 am

Post by Sandra » Thu May 07, 2009 8:18 am

Hello gcrnd,

We found that this bug [TF02014091], is not a bug, and you could solve your issue using next code:

Code: Select all

    private void button1_Click(object sender, EventArgs e)
    {
        Steema.TeeChart.Export.JPEGFormat jpeg = Chart.Export.Image.JPEG;
        jpeg.Width *= 2;
        jpeg.Height *= 2;
        bool oldBuffer = Chart.Graphics3D.UseBuffer;
        Chart.Graphics3D.UseBuffer = false;
        jpeg.Save(@"C:\test2.jpg");
        Chart.Graphics3D.UseBuffer = oldBuffer;
    
    }

I hope you will help.


Thanks,
Best Regards,
Sandra Pazos / 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

Post Reply