Seth Spearman
Seth Spearman

Reputation: 6780

Can you reference the textboxes on an ssrs report from embedded code

Is it possible to reference a textbox from the embedded code of a ssrs report. I would like to show or hide the textbox based on a condition.

Upvotes: 2

Views: 4939

Answers (2)

gbn
gbn

Reputation: 432210

You can use the ReportItems collection...

Upvotes: 5

jgallant
jgallant

Reputation: 11273

Best way to do this is to put a condition on the visible property of your textbox. For example, the Visibility.Hidden property of your textbox, put your condition like this:

=If(CONDITION, True, False)

So, if your condition is True - set Hidden = True and if your condition is False- set Hidden = False

Upvotes: 1

Related Questions