Image crated from a TChart Shows Line on Bottom and Left

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Image crated from a TChart Shows Line on Bottom and Left

Post by TestAlways » Fri Apr 11, 2014 3:25 pm

2014.11.140409 (This took a long time to figure out how to reproduce! )

In the attached demo, the image created from the has a slight bevel/shadow line on the bottom and left of the chart:

Image

This did not occur in the previous version.

One thing we have done in code to create the image is to use a TTeeCanvas3D (verses the TGDIPlusCanvas). The WMF images created from the GDI Plus canvas created significant problems with our report engine.

Ed Dressel
Attachments
Create Image Margin Problem.zip
(47.97 KiB) Downloaded 689 times

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by Yeray » Mon Apr 14, 2014 3:41 pm

Hello Ed,

If I comment out this line at the beginning of your AssignChartToGraphic procedure:

Code: Select all

  //aChart.Canvas := TTeeCanvas3D.Create;
And I add this line inside the loop in the same procedure:

Code: Select all

        TPieSeries(aChart.Series[I]).Shadow.Visible:=false;
Both issues disappear, isn't it?
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by TestAlways » Mon Apr 14, 2014 3:50 pm

But like I said at the bottom of the original post, if I use the default canvas (TGDIPlusCanvas), the images typically[1] do not show up in my report engine (ReportBuilder) when I save to a PDF. So that is not an option--I have to use the TTeeCanvas3D.

[1] It is a very strange problem. I spent hours trying to produce a demo for Digital Metaphors to work with but could not get it to occur. It is better than it was a month ago, but no charts showing up isn't a good problem.

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by Yeray » Tue Apr 15, 2014 2:09 pm

Hello Ed,
TestAlways wrote:But like I said at the bottom of the original post, if I use the default canvas (TGDIPlusCanvas), the images typically[1] do not show up in my report engine (ReportBuilder) when I save to a PDF. So that is not an option--I have to use the TTeeCanvas3D.

[1] It is a very strange problem. I spent hours trying to produce a demo for Digital Metaphors to work with but could not get it to occur. It is better than it was a month ago, but no charts showing up isn't a good problem.
I've found an alternative workaround to hide the bevel. You can set this at your Create override:

Code: Select all

  Self.Color:=clWhite;
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by TestAlways » Tue Apr 15, 2014 2:40 pm

Thank you. I will try it.

Note that this problem did not occur in previous versions of TChart.

Ed Dressel

TestAlways
Advanced
Posts: 228
Joined: Tue Aug 28, 2007 12:00 am
Location: Oregon, USA

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by TestAlways » Wed Apr 23, 2014 3:02 pm

We use the charts in our reports, and the reports may have a water mark. Setting the color to clWhite hides the watermark. So while this solution fixes the problem, it creates another.

Is this something that will be fixed soon?

Thank you for your responsiveness.

Ed Dressel

Yeray
Site Admin
Site Admin
Posts: 9612
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: Image crated from a TChart Shows Line on Bottom and Left

Post by Yeray » Thu Apr 24, 2014 10:42 am

Hi Ed,

I've investigated a bit more to try to find where the problem comes from, and I've added it to the tracker:
http://bugs.teechart.net/show_bug.cgi?id=739
Feel free to add your mail to the CC list to be automatically notified when an update arrives.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply