Enabled tab in the properties window

Stimulsoft Reports.NET discussion
Post Reply
Dwayne
Posts: 7
Joined: Fri Mar 06, 2015 12:24 am

Enabled tab in the properties window

Post by Dwayne »

Hi
I am trying to get the enabled to switch between true or false depending on if the textbox has anything in it. This is what I have come up with in the before print events box in the GroupHeaderAppliances butI cant get it to work. My report is in VB not C#

IIF(TextAppliance.Text="",GroupHeaderAppliances.Enabled= false,GroupHeaderAppliances.Enabled = true)

Thanks
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Enabled tab in the properties window

Post by HighAley »

Hello.

This in not right to get value of text component this way.
Please, try to use the sample expression as in TextAppliance component.

If you need to disable any component by condition. It's better to use Conditions and set Conponent is Enabled property to false.

Thank you.
Post Reply