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

Parents
  • 54937
    Offline posted

    In general .net printing is a forward driven process so as each page is rendered it is sent out to the printer so the total number of pages isn't known until the print operation is complete. That being said the WinGrid does try to calculate out the page layout beforehand so it might be possible to add this feature in a future version. I would recommend submitting a suggestion for adding this to the UltraGridPrintDocument.

Reply Children
No Data