how to hide shape depend on the value of text

Stimulsoft Reports.NET discussion
Post Reply
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

how to hide shape depend on the value of text

Post by nezarabd »

i have ovel shape
i want to hide it when text1 <= text2

i tray this in condition of the shape
but i have error message

Decimal.Parse(Text1.Text) <= Decimal.Parse(Text2.Text)
Attachments
Report.mrt
(4.66 KiB) Downloaded 187 times
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how to hide shape depend on the value of text

Post by Alex K. »

Hello,

You need use the expression from Text components in the Condition. For example "DataSourceName.Column1 <= DataSourceName.Column2", in your case it is - "10 <= 20".

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

Re: how to hide shape depend on the value of text

Post by HighAley »

Hello.

It's impossible to take a value of a text component this way.
You should use the same expression as in the text components or save the values in variables in Get Value events of the text components.

Thank you.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: how to hide shape depend on the value of text

Post by nezarabd »

Mr. Aleksey Andreyanov

sample pls

thanks for reply
Last edited by nezarabd on Wed Feb 25, 2015 9:18 am, edited 1 time in total.
nezarabd
Posts: 32
Joined: Tue Sep 30, 2014 1:38 pm

Re: how to hide shape depend on the value of text

Post by nezarabd »

Mr. Aleksey

i want to do so without datasource
i want with the value of textbox content
thanks for reply
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: how to hide shape depend on the value of text

Post by Alex K. »

Hello,

You need use this value in the Condition.

Thank you.
Post Reply