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:
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
Image crated from a TChart Shows Line on Bottom and Left
-
- 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
- Attachments
-
- Create Image Margin Problem.zip
- (47.97 KiB) Downloaded 689 times
Re: Image crated from a TChart Shows Line on Bottom and Left
Hello Ed,
If I comment out this line at the beginning of your AssignChartToGraphic procedure:
And I add this line inside the loop in the same procedure:
Both issues disappear, isn't it?
If I comment out this line at the beginning of your AssignChartToGraphic procedure:
Code: Select all
//aChart.Canvas := TTeeCanvas3D.Create;
Code: Select all
TPieSeries(aChart.Series[I]).Shadow.Visible:=false;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- 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
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.
[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.
Re: Image crated from a TChart Shows Line on Bottom and Left
Hello Ed,
I've found an alternative workaround to hide the bevel. You can set this at your Create override: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.
Code: Select all
Self.Color:=clWhite;
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
-
- 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
Thank you. I will try it.
Note that this problem did not occur in previous versions of TChart.
Ed Dressel
Note that this problem did not occur in previous versions of TChart.
Ed Dressel
-
- 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
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
Is this something that will be fixed soon?
Thank you for your responsiveness.
Ed Dressel
Re: Image crated from a TChart Shows Line on Bottom and Left
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.
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,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |