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
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.
Thanks for your reply, I might submit a suggestion.
Best Regards