Page count

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products 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.....

Thanks,

b
bswift
Member
Member
 
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.
Kambiz
User avatar
Kambiz
Administrator
Administrator
 
Posts: 2408
Joined: March 7th, 2003, 7:10 pm


Return to DELPHI AREA Products

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron