Click here to Skip to main content
15,896,539 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Iam using VS2010 .I have multiline textBox in rdlc. While I wish to Bold a particular line in rdlc report I have no idea to do that.

Suppose I have a single multiline textBox containing the below values
VB
=First(Fields!sub_total.Value, "DataSet1") & vbcrlf &
First(Fields!cess.Value, "DataSet1") & vbcrlf &
First(Fields!round_off.Value, "DataSet1") & vbcrlf &
First(Fields!net_total.Value, "DataSet1")


From the above values, I wish to bold the below field only.

C#
First(Fields!cess.Value, "DataSet1") 

Is it possible to bold a particular field in multiline textbox?

Thanks
Posted
Comments
goathik 13-Jun-14 9:31am    
I don't think it is possible, but who knows, right? My suggestion: put everything in a label and bold it as you wish, and since you want to edit them, put a tiny "edit" button beside the label. I know that is out of question, but this is just a comment, not a solution ;)

 
Share this answer
 
v3
No. Textbox sports a Font property. It rules the whole text box.
If you want anything more, go for either RichTextBox or WebBrowser. They accept formatted inputs in rich text or html, respectively.
 
Share this answer
 
Comments
DamithSL 13-Jun-14 9:50am    
OP ask how to change the font in RDLC. not Winform or asp.net

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