wonde
wonde

Reputation: 684

Is it possible to show/hide SSRS PageNumber programmatically?

Is it programmatically possible to hide the page number label which is shown in SSRS Report ? Currently it is shown in the PageFooter of the report.

Thanks in advance.

Upvotes: 0

Views: 1767

Answers (1)

Cos Callis
Cos Callis

Reputation: 5084

The page number is a global value displayed inside a textbox.

If you wish to remove it altogether, then you may delete the textbox.

If you want to conditionally supress the page number you can locate the textbox's "hidden" property in the property pane collapsed under "visibility". By default it is set to "false". However, you can change it to an expression of

=iif(Globals!PageNumber = 1,True, False)

and this will suppress the page number on Page 1. You may use any manner of expression such as

=iif(parameters.username="Fred", True, False)

Cheers,

CEC

Notice that expression are in VBScript and not C#

Upvotes: 1

Related Questions