Printing Multiple Charts on single page

TeeChart VCL for Borland/CodeGear/Embarcadero RAD Studio, Delphi and C++ Builder.
Post Reply
darcy
Newbie
Newbie
Posts: 16
Joined: Mon Sep 14, 2009 12:00 am

Printing Multiple Charts on single page

Post by darcy » Thu Jan 28, 2010 3:39 pm

Folks,
Good afternoon. I have read a number of posts on printing multiple charts but none seem to have a problem I am encountering. I have successfully add 3 charts/panels to my preview panel and can view them perfectly in the preview window (see attached). However, when I print, it only partially prints the top chart at the uppermost part of the page, cutting it off half way. The twist is that when I check the Smooth option within the preview panel it prints perfect. I have tried setting the SmoothBitmap option to true but it doesn't update the check box, or have an effect when I print directly without displaying the preview panel.

Any help greatly appreciated.

Code snapshot:

chart1->PrintProportional = false;
chart1->PrintMargins = Rect( 2, 15, 2, 60 );
Prev->PreviewPanel()->Panels->Add( chart1 );

chart2->PrintProportional = false;
chart2->PrintMargins = Rect( 2, 40, 2, 35 );
Prev->PreviewPanel()->Panels->Add( chart2 );

chart3->PrintProportional = false;
chart3->PrintMargins = Rect( 2, 65, 2, 10 );
Prev->PreviewPanel()->Panels->Add( chart3 );
Attachments
PreviewPanel.JPG
PreviewPanel.JPG (76.76 KiB) Viewed 5693 times

Narcís
Site Admin
Site Admin
Posts: 14730
Joined: Mon Jun 09, 2003 4:00 am
Location: Banyoles, Catalonia
Contact:

Re: Printing Multiple Charts on single page

Post by Narcís » Thu Jan 28, 2010 4:15 pm

Hi darcy,

To reproduce smooth checkbox behavior you should use StretchDraw as I posted here.

Hope this helps!
Best Regards,
Narcís Calvet / Development & Support
Steema Software
Avinguda Montilivi 33, 17003 Girona, Catalonia
Tel: 34 972 218 797
http://www.steema.com
Image Image Image Image Image Image
Instructions - How to post in this forum

darcy
Newbie
Newbie
Posts: 16
Joined: Mon Sep 14, 2009 12:00 am

Re: Printing Multiple Charts on single page

Post by darcy » Thu Jan 28, 2010 4:40 pm

Hi Narcis,
Thanks for the very prompt reply. I have discovered that AsBitmap controls the Smooth checkbox on the preview panel which is enough for me. Thanks for the info on StretchDraw. Would you have any suggestions why the charts discussed would only print successfully in Smooth i.e. bmp mode. I can't understand why only one chart is being attempted to be drawn (top chart) and is getting cut off. Would the 'active' margins, as can be seen in the previously attached jpg have any bearing e.g. when I edit the margins using the previewer only the top chart in the preview panel gets updated. Is this a coincidence.

Thanks again for the prompt reply

D'Arcy

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

Re: Printing Multiple Charts on single page

Post by Yeray » Tue Feb 02, 2010 5:13 pm

Hi D'Arcy,

Excuse us for the delayed reply.

I've tried the following project and it seems to be printing the three charts completely without any cut regardless of asBitmap as true or false. Could you please modify it so we can reproduce the problem here?

Thanks in advance.
Attachments
printing.zip
(1.4 KiB) Downloaded 456 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

Post Reply