Click here to Skip to main content
15,890,845 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I want to make some text bold and underlined, if the the value of field in my database is, say "HD"

I mean, I have two fileds in the database. Text1 and Header. I display the Text1 in my report and if Header's value is "HD", then Text1 should be in bold and fontsize should be 12. Otherwise, just show it normally.


How to do it?

Thanks
Furqan
Posted

If you see, there is an 'Expression' option available when you set the fonts. Use that.

In your expression window, use the fields in a iif statement and based on the condition set the font value.
Similar for size.
 
Share this answer
 
Comments
Espen Harlinn 28-Feb-11 11:39am    
Good reply, my 5
Sandeep Mewara 1-Mar-11 7:02am    
Thanks. :)
=iif(Fields!Header.Value = "HD", "Bold", "Normal")
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900