Helo!
I have several fields mixed with text within a textbox of a LocalReport. I want to set a format to fieds and another different format to textbox. Is this possible?
Thanks
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jul 10, 2013, 12:04 AM
Please refer the below link
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/dc88c256-b00b-41b9-9f33-3c2aa0c96a8b/displaying-rich-text-with-formatting-in-rdlc-file
Regards,
Iftikar
Edwin EggerPosted Jul 10, 2013, 10:37 AM
I found al infomation I need in the page you give me.
Thanks
Edwin EggerPosted Jul 9, 2013, 5:25 PM
I think you place a RichTextBox in the reportviewer control (wich is a winform control), but not in the report.
I've tried it by putting a RTB, writing some text in it and run, then I've exported it as pdf file and the RTB's text diden't appeared in the pdf file.
Hemant SrivastavaPosted Jul 9, 2013, 3:47 PM
and a sample run:
Edwin EggerPosted Jul 9, 2013, 1:59 PM
I want to show it in a Microsoft Report (RDLC). It doesn't have RichTextBox.
http://i.stack.imgur.com/GpHLM.png
Regards,
Anti_Work
Sanjeeb LenkaPosted Jul 9, 2013, 12:05 PM
Hemant SrivastavaPosted Jul 9, 2013, 12:01 PM
For example:
string sFirst = "Mr Robinson";
string sSecond = "Italian coffee table";
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, FontStyle.Bold);
richTextBox1.AppendText(sFirst +"\t");
richTextBox1.SelectionFont = new Font(richTextBox1.SelectionFont, FontStyle.Italic);
richTextBox1.AppendText(sSecond);
This will give display as below:
Iftikar HussainPosted Jul 9, 2013, 11:02 AM
Regards,
Iftikar
Edwin EggerPosted Jul 9, 2013, 9:23 AM
"…I recently received a letter from a {Mr Robinson}, a valued customer of ours. He purchased an {Italian coffee table} and…"
As you can see the fields format (bold and italic) is different from other text format.
Iftikar HussainPosted Jul 9, 2013, 8:39 AM
Please provide more details. Are you looking for string format of textbox data?
Regards,
Iftikar