I am trying to get the UltraSchedulePrintDocument control to print a Header or Footer line that prints Page xx of yy where xx is the page number of yy Total pages
I have tried various strings replacements such as .Footer.TextRight = "Page <#> of <##>" which works as expected in a UltraGridPrintDocument but not a UltraSchedulePrintDocument
The UltraGridPrintDocument goes through a "generating Preview" which the UltraSchedulePrintDocument does not and in the UltraSchedulePrintDocument under debug the property TotalPages of the UltraSchedulePrintDocument never receives a value.
Is there a property I need to set to cause the UltraSchedulePrintDocument to generate the complete previewed output first to get value in TotalPages to have a value like the UltraGridPrintDocument does or is this a defect?
Thank you in advance for your help
I am working on your inquiry at this moment. I will update you as I have progress on it.
Thank you for your understanding and patience.
If you have any question with this, please let me know.
Best regards,Yuki MitaDeveloper Support EngineerInfragistics Inc.www.infragistics.com/support
After investigating on how to show total number of pages and doing some research, this idea has been determined to be a product idea. You can suggest new product ideas for future versions by emailing firstname.lastname@example.org.
Submitting your idea will send it directly to our product management team so that it can be imported into our new ideas community once live: http://ideas.infragistics.com.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.
Dear Yuki Mita
Thank you for your reply. However, I beg to differ because the UltraSchedulePrintDocument has a property of Totalpages but the Infragistics software just never puts a value in it. I am quite firmly of the opinion that this is a defect. It should work exactly the same as the UltraGridPrintdocument.
Thank you for sharing your thought on this. I talked with our development team, and at this moment, UltraSchedulePrintDocument does not support this scenario while UltraGridPrintDocument does. UltraSchedulePrintDocument will know the total number of pages after the printing process is completed.
TotalNumberOfPages is a property on the UltraPrintDocument, which is the base class for UltraSchedulePrintDocument. The documentation for that property states:
"Gets the total number of pages to be printed or null if that value cannot be determined."
The UltraSchedulePrintDocument is the latter case. The TotalNumberOfPages is not determined up front - the printing process goes through the data and doesn't know the total number of pages until it finishes. In order to determine the total number of pages up front, it would have to process the data twice, once to determine the total number of pages and then again to actually print them. Since this would be wasteful and inefficient, it does not do that.
Manager - Windows Forms Development