UltraSchedulePrintDocument total pages

Not Answered This post has 0 verified answers | 5 Replies | 3 Followers Thread's RSS feed.

skalyniuk
Points 1,725
Replied On: Sat, Oct 14 2017 7:33 PM Reply

HI

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

  • Post Points: 20

All Replies

Yuki Mita
Points 445
Infragistics Employee
Replied On: Mon, Oct 16 2017 2:57 AM Reply

Hello skalyniuk,

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 Mita
Developer Support Engineer
Infragistics Inc.
www.infragistics.com/support

  • Post Points: 5
Yuki Mita
Points 445
Infragistics Employee
Replied On: Mon, Oct 16 2017 10:53 PM Reply

Hello skalyniuk,

 

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 ideas@infragistics.com.

 

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.

 

If you have any question with this, please let me know.

Best regards,
Yuki Mita
Developer Support Engineer
Infragistics Inc.
www.infragistics.com/support

  • Post Points: 20
skalyniuk
Points 1,725
Replied On: Sun, Oct 22 2017 4:35 AM Reply

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.

Regards

Stephen

  • Post Points: 35
Yuki Mita
Points 445
Infragistics Employee
Replied On: Mon, Oct 23 2017 4:46 AM Reply

Hello Stephen,

 

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.

If you have any question with this, please let me know.

Best regards,
Yuki Mita
Developer Support Engineer
Infragistics Inc.
www.infragistics.com/support

  • Post Points: 5
Mike Saltzman
Points 466,635
Infragistics Employee
Replied On: Mon, Oct 23 2017 10:04 AM Reply

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. 

Mike Saltzman

Manager - Windows Forms Development

Infragistics, Inc.

  • Post Points: 5
Page 1 of 1 (6 items) | RSS