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.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 8:04 PM EDT
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
Iftikar HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 4:39 AM EDT
Please provide more details. Are you looking for string format of textbox data?
Regards,
Iftikar
Edwin Egger14 reputationPosted Jul 9, 2013, 5:23 AM EDT
"…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 HussainRank #423 · 5.9K reputationPosted Jul 9, 2013, 7:02 AM EDT
Regards,
Iftikar
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 9, 2013, 8:01 AM EDT
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:
Sanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 9, 2013, 8:05 AM EDT
Edwin Egger14 reputationPosted Jul 9, 2013, 9:59 AM EDT
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
Hemant SrivastavaRank #581 · 4.2K reputationPosted Jul 9, 2013, 11:47 AM EDT
and a sample run:
Edwin Egger14 reputationPosted Jul 9, 2013, 1:25 PM EDT
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.
Edwin Egger14 reputationPosted Jul 10, 2013, 6:37 AM EDT
I found al infomation I need in the page you give me.
Thanks