Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
625
Setting pagecount on the footer
posted

Hi,

 

I am using the UltraGridPrintDocument and UltraPrintPreviewDialog, to make it possible to print out grids.

 My problem is that I would like to add pagenumbering to each page. So far I have managed to add the pagenumber to the Footer like this:

 Footer.TextLeft = "Page [Page #]";

What I want is to, is setting the pagenumbering as this: "Page 1 of 11 pages".

How is it possible to get the pagecount? Are there any other substitution Tags, (Like [Page #]), that I can use?

 

Thanks in advance!

 

Dennis Tycho Nielsen