Scripting and Change Fonts

Stimulsoft Reports.NET discussion
Post Reply
mercer_123
Posts: 1
Joined: Wed Dec 23, 2009 9:37 am
Location: Chalfont, PA USA

Scripting and Change Fonts

Post by mercer_123 »

is there any way to geting HTML working in the Expression window so that you can change fonts and colors on the Reports depending on if it is populated.

{Employees.sPhone1.Trim()}{(Employees.sPhone2.Length > 0)?(", " + Employees.sPhone2.Trim()):(string.Empty)}{(Employees.sEmail.Length > 0)?(" Email: " + Employees.sEmail):(string.Empty)}

want to change the color, and font on email.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Scripting and Change Fonts

Post by Edward »

Hi

Please set AllowHTMLTags property of the StiText component in true. After that you will be able to apply Html tags in expressions in that text component.

That is possible.
Post Reply