C
C.N.Siva
I am dynamically creating a richtextcontentcontrol using VSTO (Word 2007).
The text that is set to the control will be something like
“<div><b>Data</b></div>â€. I expect the richtextcontentcontrol to detect the
HTML tags and display the text with HTML formatting, but that is not the
case. It simply displays the text with HTML tags.
Here is the source code:
Microsoft.Office.Tools.Word.RichTextContentControl customControl =
Globals.ThisDocument.Controls.AddRichTextContentControl(contentRange, name);
customControl.Text = "<div><b>Data</b></div>";
Please let me know if I am doing something wrong here and if there is any
alternate solution.
This is an urgent requirement. Please help me out.
Thanks in advance
C.N.Siva
The text that is set to the control will be something like
“<div><b>Data</b></div>â€. I expect the richtextcontentcontrol to detect the
HTML tags and display the text with HTML formatting, but that is not the
case. It simply displays the text with HTML tags.
Here is the source code:
Microsoft.Office.Tools.Word.RichTextContentControl customControl =
Globals.ThisDocument.Controls.AddRichTextContentControl(contentRange, name);
customControl.Text = "<div><b>Data</b></div>";
Please let me know if I am doing something wrong here and if there is any
alternate solution.
This is an urgent requirement. Please help me out.
Thanks in advance
C.N.Siva