Change the text of Text object

Stimulsoft Reports.NET discussion
Post Reply
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Change the text of Text object

Post by isoft »

Hi.
I need to do the following: On the report if the date of birth is 01.01.1900 in the Text component (the date of birth is taken from the database), then I need to change the text of that Text component instead of 01.01.1900 to be an empty string. How can I do taht and is it possible?
I tried to write something in the GetValue event of the Text component, but it doesn't work. I wrote something like this:
if (Text10.Text == "01.01.1900")
Text10.Text = ""

Any help would be great.

Thanks!
Ivan
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

Change the text of Text object

Post by Vital »

Please use following code in GetValue event:

Code: Select all

if (e.Value == "01.01.1900")e.Value = "";

Thank you.
isoft
Posts: 55
Joined: Fri Sep 08, 2006 9:33 am
Location: Croatia

Change the text of Text object

Post by isoft »

Thanks very much for Your help! It works great!
Post Reply