Groups | Blog | Home
all groups > sql server reporting services > december 2004 >

sql server reporting services : Page Count via rs.Render and HTML format


Todd Smart
12/1/2004 2:01:03 PM
I see that this has been asked over-and-over again...don't see that anyone
has gotten an answer on it...thought I'd have a go:

---------------
I'm developing a web app that interfaces with RS through the web services
API. In the custom paging portion of the solution, I need to know how many
pages a report is comprised of. Doesn't look like there is an obvious
mechanism for doing so...the streamIDs string array does not work for HTML
format.
---------------

Anyone been able to solve this?


Regards,

raj
12/2/2004 5:25:05 AM
Yes!

We also tried with StreamIds but it doesn't give us the actual page count

So we have done it through "Pattern Matching" using Regular Expression.
Suppose if u have "Page x of XXXX" in your report, then you can search for
"XXXX" in the output that you have got from rs.render() method.

raj.

[quoted text, click to view]
Todd Smart
12/2/2004 8:59:02 AM
Thanks, Raj.

I'd just implemented that approach this morning! It is a good thing my
client was interested in seeing total page counts in their reports! LOL

[quoted text, click to view]
AddThis Social Bookmark Button