Hide / Show fields and formula under condition

Stimulsoft Reports.NET discussion
Post Reply
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Hide / Show fields and formula under condition

Post by Girasole »

Good morning at all!
I have a report where something fields (8) are populate with db query and one with formula.
When I call the report from my vb.net project, if "Condition=false" then I want to hide 4 of this fields and that calculated.
How can I resolve my problem?
Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Hide / Show fields and formula under condition

Post by HighAley »

Hello.
Girasole wrote:Good morning at all!
I have a report where something fields (8) are populate with db query and one with formula.
When I call the report from my vb.net project, if "Condition=false" then I want to hide 4 of this fields and that calculated.
How can I resolve my problem?
You could set the condition of these 4 components and remove Enabled checkbox.

Thank you.
Attachments
1636.ConditionEnabled.png
1636.ConditionEnabled.png (22.79 KiB) Viewed 3439 times
Girasole
Posts: 16
Joined: Thu Nov 10, 2011 10:33 am

Hide / Show fields and formula under condition

Post by Girasole »

Thank you for your reply.
I need to do this by writing code vb.net. It's possible?
Thank you
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Hide / Show fields and formula under condition

Post by HighAley »

Hello.
Girasole wrote:Thank you for your reply.
I need to do this by writing code vb.net. It's possible?
Please, try to use next code for each component:

Code: Select all

rep.GetComponentByName("Text11").Enabled = false
Thank you.
Post Reply