Dear All;
I have build a c# winform application, Each use will enter comments using a richtext with ( Bold, Italic,Underline , alignment, FontColor ) features , then he will save his comment in the database , so that I want to display the comments with the used formats.
while saving and inserting data I have used this line of code :
com.Parameters.Add("@cmts", SqlDbType.NText).Value = rtbDoc.Rtf;
And I have used a webbroswer control to display data ( I have choosed webbrowser control because it is easy to display and desgin the data using html tables )
And I choosed to display the comments is textarea field. But it is displaying the comments like that :
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\pard\qc\b\f0\fs17 Tamer Hatoum\par
\pard I am sending for testing \ul My software\ulnone\b0\par
}
So how can display it in the same formated text ??
Regards.