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 );
Printing Multiple Charts on single page
Printing Multiple Charts on single page
- Attachments
-
- PreviewPanel.JPG (76.76 KiB) Viewed 5739 times
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Printing Multiple Charts on single page
Hi darcy,
To reproduce smooth checkbox behavior you should use StretchDraw as I posted here.
Hope this helps!
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 |
Instructions - How to post in this forum |
Re: Printing Multiple Charts on single page
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
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
Re: Printing Multiple Charts on single page
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.
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 458 times
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |