Page 1 of 1

Printing Multiple Charts on single page

Posted: Thu Jan 28, 2010 3:39 pm
by 10054230
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 );

Re: Printing Multiple Charts on single page

Posted: Thu Jan 28, 2010 4:15 pm
by narcis
Hi darcy,

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

Hope this helps!

Re: Printing Multiple Charts on single page

Posted: Thu Jan 28, 2010 4:40 pm
by 10054230
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

Re: Printing Multiple Charts on single page

Posted: Tue Feb 02, 2010 5:13 pm
by yeray
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.