Page count

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

Page count

Postby bswift » April 17th, 2009, 6:50 pm

OK....I thought I had a soultion for the page count to add to the printed page like this:
Format('Page %d of %d: '+sn, [TotalPages+1, PagesCount]));

I was using some other code that I won't bore you with to get the page count because it was not working correctly. I know for sure I can get the page count from a little bit of hacked code in Preview.pas. How can I add that to the pages using something other thah NewPage proc??

I'm stumpted.....


Posts: 4
Joined: March 26th, 2009, 9:38 pm

Re: Page count

Postby Kambiz » April 17th, 2009, 7:47 pm

The TotalPages property updates when a page is added to the page list.

Inside BeginDoc/EndDoc block you can only use NewPage to add a new page. However, outside BeginDoc/EndDoc, you can use BeginInsert/EndInsert block to add a new page.
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 1 guest