Render Print preview page on demand

Please post bug reports, feature requests, or any question regarding the DELPHI AREA projects here.

Render Print preview page on demand

Postby egrobler » September 7th, 2010, 9:26 pm

Thank you for the wonderful print preview component.

I want to print a list of test questions and the list may contain 1000 pages.
Is it possible to add 1000 blank pages and then only render them when a thumbnail/preview is visible or the page needs to be printed?

Something like:
for i := 0 to PagesInTest-1 do PrintPreview.NewPage;
and then on demand something like:
PrintPreview.PaintWinControl(40,40, RenderTestPage(PageNo));

Thanks and Regards
Posts: 1
Joined: September 7th, 2010, 8:58 pm

Re: Render Print preview page on demand

Postby Kambiz » September 18th, 2010, 3:50 pm

When user changes the current page the OnChange event occurs. You can use this event to fill the blank page with the actual content (Use BeginReplace method).
User avatar
Posts: 2430
Joined: March 7th, 2003, 7:10 pm

Return to DELPHI AREA Projects

Who is online

Users browsing this forum: No registered users and 2 guests