PDA

View Full Version : Page Numbers


DotNetUSA
May 18, 2007, 20:32:59
I can show the current page number in the footer of a ServerText Control using the Page Number Field. But how can I show the total number of pages

I want to display page 1 of 5 in the footer.
page n of n

I tried to use the ServerText Control.Pages property whihc returns the total number of pages in the current document but it does not work.

thanks

Gunnar Giffey
May 19, 2007, 13:54:54
Please have a look at this sample in our Source Code Library:
http://www.textcontrol.com/downloads/library/headers/pagenumbers/

DotNetUSA
May 21, 2007, 14:00:29
Thanks, I was inserting the txTextControl.pages at the beginning of the document instead of the end. So the number of pages was always 1. It works now