Page 1 of 1

Save Chart to Jpeg Border problem (regression from version2)

Posted: Sun Apr 19, 2009 5:50 am
by 9092401
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

Posted: Mon Apr 20, 2009 10:45 am
by 10050769
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.

Posted: Mon Apr 20, 2009 12:54 pm
by 9092401
Hi Narcis
Thanks for the response. Please raise the priority since we now have regressions in our application which do not look good .
Thanks.

Posted: Mon Apr 20, 2009 1:18 pm
by narcis
Hi qcrnd,

This is a high priority issue already.

Posted: Thu May 07, 2009 8:18 am
by 10050769
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,