Page 1 of 1

Panel Graphic stretched when plot is printed

Posted: Fri Mar 07, 2014 10:24 pm
by 10066626
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

Re: Panel Graphic stretched when plot is printed

Posted: Tue Mar 11, 2014 10:52 am
by yeray
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 15311 times

Re: Panel Graphic stretched when plot is printed

Posted: Wed Mar 19, 2014 11:45 am
by 10066626
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

Re: Panel Graphic stretched when plot is printed

Posted: Thu Mar 20, 2014 4:09 pm
by yeray
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.

Re: Panel Graphic stretched when plot is printed

Posted: Tue Oct 13, 2020 3:11 pm
by 16489582
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

Re: Panel Graphic stretched when plot is printed

Posted: Wed Oct 14, 2020 10:22 am
by yeray
Hello,

Have you tried using StretchDraw as suggested?

Re: Panel Graphic stretched when plot is printed

Posted: Mon Oct 19, 2020 3:16 pm
by 16489582
I didn't use the StretchDraw method.
I don't know where to implement it.Using the ChartPreviewer component.

Re: Panel Graphic stretched when plot is printed

Posted: Fri Nov 06, 2020 11:33 am
by yeray
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.