Groups | Blog | Home
all groups > sql server reporting services > february 2005 >

sql server reporting services : Total # pages in the report body?


Paul Enfield
2/2/2005 5:08:56 PM
Does anyone know of a trick to get the page count for the report into the
report body? It seems to be limited to usage in the header/footer.

I tried to create custom code function that assigned the page count to a
parameter, and then displaying the parameter, but doesn't seem to work.

Anyone done this?
Ideas?

Paul Enfield
2/4/2005 1:18:53 PM
Still haven't had any luck finding a way to do this. Anyone have input?
Perhaps even a "there's no way?"


[quoted text, click to view]

Cu Nguyen
2/8/2005 1:19:06 PM
Add this code to your customer code section:

Public Shared PageNum as Integer=0

Public Function SetPageNum as Integer
PageNum = PageNum +1
Return PageNum
End Function

Call this function inside a text box or any field you desire.

This will only work if you don't need to reset the page number.

Make sure to put this inside the group header, not the table header.

Cu

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