Panel Graphic stretched when plot is printed

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
BVSimmons
Newbie
Newbie
Posts: 3
Joined: Tue Jul 23, 2013 12:00 am

Panel Graphic stretched when plot is printed

Post by BVSimmons » Fri Mar 07, 2014 10:24 pm

Just upgraded to TeeChart 2014 for Delphi 2007 (version: 2014.10.140220)

I noticed that the custom graphic that I placed on the panel is stretched when the graphic is set to the printer. I noticed that the Bounds Tab of the Image Tab of the Panel Tab is always set the Style to Stretch and the Style can not the changed because it is grayed out. (See the attached screen shot 'TEEChart.png').

I have included a ScreenShot of the graph as it appears on the screen (Sample.png)

And a Screen shot of the output set to a PDF printer driver, the same occurs when set directly to a printer (SampleOutput.png)

Is there a work around that I can implement to prevent this from happening?

This did not occur with Tee Chart 8.08.

Thanks
Bernard
Attachments
SampleOutput.PNG
SampleOutput.PNG (129.4 KiB) Viewed 19225 times
Sample.PNG
Sample.PNG (107.83 KiB) Viewed 19201 times
TEEChart.PNG
TEEChart.PNG (36.44 KiB) Viewed 19190 times

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

Re: Panel Graphic stretched when plot is printed

Post by Yeray » Tue Mar 11, 2014 10:52 am

Hello Bernard,
BVSimmons wrote:I noticed that the custom graphic that I placed on the panel is stretched when the graphic is set to the printer.
We'd need to see how are you exactly loading/drawing this graphic. Could you please arrange a simple example project we can run as-is to reproduce the problem here?

Thanks in advance.
BVSimmons wrote:I noticed that the Bounds Tab of the Image Tab of the Panel Tab is always set the Style to Stretch and the Style can not the changed because it is grayed out. (See the attached screen shot 'TEEChart.png').
These options are greyed out if you don't have an image loaded in the same editor, here:
2014-03-11_1148.png
2014-03-11_1148.png (7.44 KiB) Viewed 19155 times
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

BVSimmons
Newbie
Newbie
Posts: 3
Joined: Tue Jul 23, 2013 12:00 am

Re: Panel Graphic stretched when plot is printed

Post by BVSimmons » Wed Mar 19, 2014 11:45 am

HI Yeray,

Sorry for the delay it too me a bit of time to create a sample project which was stripped down to just focus on this issue.

In the sample C++ Builder (2007) just select from the Print menu to Print the graphic on the screen and you will see the effect.

Hope it is something simple that I am doing which is causing this.

Thanks in advance

Bernard
Attachments
TeeChartStub.zip
Sample project demonstrating the error
(80.09 KiB) Downloaded 1288 times

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

Re: Panel Graphic stretched when plot is printed

Post by Yeray » Thu Mar 20, 2014 4:09 pm

Hello,

You project contains references to packages we don't have here: TAdvMainMenu, TAdvMenuStyler. Anyway, I could move the code from your project to a new project and reproduced the problem. I'd suggest you to take a look at the following resources:

- Printing Better article
- StretchDraw technique
- Printing Charts FAQ

I'd suggest you to check the StretchDraw technique.
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

Marcel H
Newbie
Newbie
Posts: 2
Joined: Thu Oct 01, 2020 12:00 am

Re: Panel Graphic stretched when plot is printed

Post by Marcel H » Tue Oct 13, 2020 3:11 pm

Hello,

I Have the same problem. My images is stretched while printing.

Is this problem already solved?

I purchased the latest version some 14 days ago.

Please Help

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

Re: Panel Graphic stretched when plot is printed

Post by Yeray » Wed Oct 14, 2020 10:22 am

Hello,

Have you tried using StretchDraw as suggested?
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

Marcel H
Newbie
Newbie
Posts: 2
Joined: Thu Oct 01, 2020 12:00 am

Re: Panel Graphic stretched when plot is printed

Post by Marcel H » Mon Oct 19, 2020 3:16 pm

I didn't use the StretchDraw method.
I don't know where to implement it.Using the ChartPreviewer component.

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

Re: Panel Graphic stretched when plot is printed

Post by Yeray » Fri Nov 06, 2020 11:33 am

Hello,

I'm sorry for the delay here.
If you still find problems with it, please arrange a simple example project we can run as-is to reproduce the problem here.
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