Reputation: 561
How can I show or hide text boxes when i export to CSV or EXCEL in SSRS ?
I have parameter called Reports_Export which tells to show or hide those text boxes when i export to csv or excel.
If Reports_export = 1
show otherwise hide when export.
Upvotes: 1
Views: 1528
Reputation: 5405
Hide a TextBox based on an expression
TextBox
=> Text Box Properties
Visibility
, select Show or hide based on an expression
If you want to hide the Text Box based on the output format, you may consider using the Globals!RenderFormat.Name
variable.
Example:
=Iif(Globals!RenderFormat.Name = "CSV" Or Globals!RenderFormat.Name = "EXCEL", True, False)
Here is an article on this:
That way you won't rely on a parameter to hide the elements.
Upvotes: 3