How to color of text for variable

Stimulsoft Reports.NET discussion
Post Reply
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to color of text for variable

Post by jayanthi »

Hai,

I have a variable named as 'Total' (String datatype); set it property Allow Html Tags =True.
I have set TextBox1 forecolor as red

Passing the value from code as
report.Dictionary.Variables("totalOpr").Value = "Total Number of Opr: " & TextBox1.Text

Am getting output like Total Number of Opr: 100; 100 is not getting print in red color.
I need the output as like Total Number of Opr: 100

Is it possible to do, plz guide me.

Thank u
Jay
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

How to color of text for variable

Post by Ivan »

Hello,

Please use following expression:

"Total Number of Opr: " & TextBox1.Text & " "

Thank you.
jayanthi
Posts: 61
Joined: Wed Aug 26, 2009 4:32 am

How to color of text for variable

Post by jayanthi »

Thank u so much, its working for me.

Jay
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

How to color of text for variable

Post by Ivan »

Hello,

We are always glad to help you.
Let us know if you need any additional help.

Thank you.
Post Reply