Hide text conditionaly
-
- Posts: 12
- Joined: Fri Jun 09, 2006 11:53 am
- Location: Italy
Hide text conditionaly
How can I hide/show a StiText on the report ?
The control does not have a Visible property
Many thank
The control does not have a Visible property
Many thank
Hide text conditionaly
Text.Enabled = true / false ??
Hide text conditionaly
You can do it in the BeforePrintEvent of the DataBand or any other band on which the StiText component is placed.
Thank you.
Thank you.
Hide text conditionaly
For also you can use property Conditions of this text component.
Thank you.
Thank you.
-
- Posts: 16
- Joined: Mon Jan 08, 2007 4:01 am
Hide text conditionaly
Hi,
I can Hide StiText Using BeforePrintEvent but StiText = "" it can't work. Only StiText = " " it's work. (got a space inside)
Another things is StiText is in Databand. I set Databand to AutoShrink. The StiText i want to hide is in the last row.
But it can't Auto Shrink.
I think the problem is at StiText cause it's value " ".
In this case, how to solve this kind of problem?
Thanks.
Regards,
Nelson Chai
I can Hide StiText Using BeforePrintEvent but StiText = "" it can't work. Only StiText = " " it's work. (got a space inside)
Another things is StiText is in Databand. I set Databand to AutoShrink. The StiText i want to hide is in the last row.
But it can't Auto Shrink.
I think the problem is at StiText cause it's value " ".
In this case, how to solve this kind of problem?
Thanks.
Regards,
Nelson Chai
Hide text conditionaly
Yes, it is true.nelson wrote:Another things is StiText is in Databand. I set Databand to AutoShrink. The StiText i want to hide is in the last row.
But it can't Auto Shrink.
I think the problem is at StiText cause it's value " ".
In this case, how to solve this kind of problem?
If Text1.TextValue contains " " value then such component will not be shrunken to zero height.
You can set Text property of the text component in the following way:
Code: Select all
{Line==Categories.Count?String.Empty:Categories.CategoryID.ToString()}
Thank you.
-
- Posts: 16
- Joined: Mon Jan 08, 2007 4:01 am
Hide text conditionaly
Hi,
I'm using VB.Net.
If Fields Label is stiText, How do i hide it?
For eg, Name : Steven Tan -> Format (Label : FieldValue)
How to hide label "Name" when FieldValue is empty?
Thanks a lot.
Regards,
Nelson Chai
I'm using VB.Net.
If Fields Label is stiText, How do i hide it?
For eg, Name : Steven Tan -> Format (Label : FieldValue)
How to hide label "Name" when FieldValue is empty?
Thanks a lot.
Regards,
Nelson Chai
-
- Posts: 16
- Joined: Mon Jan 08, 2007 4:01 am
Hide text conditionaly
Hi,
Thanks for your previous advice.
Another question...
I'm using VB.Net.
If Fields Label is stiText, How do i hide it?
For eg, Name : Steven Tan -> Format (Label : FieldValue)
How to hide label "Name" when FieldValue is empty?
Thanks a lot.
Regards,
Nelson Chai
Thanks for your previous advice.
Another question...
I'm using VB.Net.
If Fields Label is stiText, How do i hide it?
For eg, Name : Steven Tan -> Format (Label : FieldValue)
How to hide label "Name" when FieldValue is empty?
Thanks a lot.
Regards,
Nelson Chai
Hide text conditionaly
For example:
Thank you.
Code: Select all
{IIF(FieldValue.Length = 0, "", FieldValue.ToString()}