is there a Siberix.Report.Report Page Count?

75 views
Skip to first unread message

Simon K

unread,
Nov 5, 2013, 12:12:50 AM11/5/13
to dot-net-...@googlegroups.com
Hi, 

I am using Siberix Report Writer v 9.4.155.0

I'd like to know the page count of my report before publishing, so that I can prompt the user to say "you are going to print XXX pages, are you sure?".

I currently print after publishing the report to XPS format and using an XpsDocument and XPSDocumentWriter, I can get the page count after creating the XPSDocumentWriter, but I would like to know it before handing the report off to the thread where I generate the XPS.

There must be a page count available somewhere because the IPageNumber interface knows about it to put it at the bottom of every page, I just can't find it in the documentation.

thanks
Simon

siberix

unread,
Nov 5, 2013, 2:48:57 AM11/5/13
to dot-net-...@googlegroups.com
Hi Simon,

Please read below:

1. You may call report.Generate() to get a reference to IPageCollection that has the Count property. Please be aware that the Generate method performs Measuring of the entire report's content similar to the Publish method. The only difference is that it doesn't produce an output stream.

2. You are using quite an old version of the product and need to upgrade to the latest version (10.1) that has a lot of new features (including support for Bidi text and a lot of other great improvements.) Please contact me at in...@siberix.com, so i'd be able to provide you with the discount coupon for the upgrade.

Thank You,
Victor
Reply all
Reply to author
Forward
0 new messages