开发者

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 PageFoote开发者_运维知识库r of the report.

Thanks in advance.


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#

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜