Click here to Skip to main content
15,888,098 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have a rdlc report.In the report there is a textbox in the end that textbox i want display only when report is generated with multiple pages.but when the report is generated one pages i do not want to display.How to do that?

What I have tried:

i tried with some expression not seems to work
Posted
Updated 8-Aug-18 4:11am

1 solution

Hi there,

Once you have open your .rdlc for editing:

1) Right-click the textbox you want to manage.
2) In the context menu, select the Text Box Properties option.
3) When the properties dialog opens, select the Visibility section.
4) Then, select "Show or hide based on expression"
5) Click the "Fx" button to open the Expression Editor.
6) Your formula should start with "=" sign and a bool expression based on the Built-In Fields TotalPages field.

Keep in mind that you are managing that textbox's visible property, if your expression return "true" it will stay visible, therefore, to hide it, your expression must return "false".

Here's an example based on an input parameter:
=Not(CBool(Parameters!VerTasa.Value))

Note: Since the incoming value is the opposite of what's needed, an NOT(...) is included

Cheers!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900