How to remove a text cmpletely from my report.

Stimulsoft Reports.NET discussion
Post Reply
Zarif
Posts: 6
Joined: Thu Mar 29, 2012 6:37 am
Location: Lebanon

How to remove a text cmpletely from my report.

Post by Zarif »

Hi ,

I have a Text control in my report and i want to hide/show this text dynamically in my code, and i am able to do that. But the problem is that its reserved hieght is still appearing. So how can i hide it, and hide its height also so that the other controls will not be separated by its height ?

Thanks.
Mohamad Zarif.
Netiks.
Stephan1
Posts: 122
Joined: Fri Aug 31, 2007 7:22 am
Location: Germany

How to remove a text cmpletely from my report.

Post by Stephan1 »

Zarif wrote:Hi ,

I have a Text control in my report and i want to hide/show this text dynamically in my code, and i am able to do that. But the problem is that its reserved hieght is still appearing. So how can i hide it, and hide its height also so that the other controls will not be separated by its height ?

Thanks.
Mohamad Zarif.
Netiks.
Hi,

if you have the textcontrol inside a databand or other band, you can set the property "can shrink" to true.

Also set the enabled property to false (like text1.enabled = false)

thx
Zarif
Posts: 6
Joined: Thu Mar 29, 2012 6:37 am
Location: Lebanon

How to remove a text cmpletely from my report.

Post by Zarif »

Stephan1 wrote:
Zarif wrote:Hi ,

I have a Text control in my report and i want to hide/show this text dynamically in my code, and i am able to do that. But the problem is that its reserved hieght is still appearing. So how can i hide it, and hide its height also so that the other controls will not be separated by its height ?

Thanks.
Mohamad Zarif.
Netiks.
Hi,

if you have the textcontrol inside a databand or other band, you can set the property "can shrink" to true.

Also set the enabled property to false (like text1.enabled = false)

thx
No the series of texts are all inside one header control. And i need to hide some of them at runtime. Any other suggestion since can shrink is not working ?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

How to remove a text cmpletely from my report.

Post by Alex K. »

Hello,

Please send us your report with test data which reproduces the issue for analysis.

Thank you.
Post Reply