Sample Visual Basic
Code to convert RTF to Plain text:
Where rtf2html1 is an instance of
an RTF-2-HTML Control. Where rtf1 is an instance of an MS
Rich Text Control.
rtf2html1.HTML_Colour = rtf1.BackColor
rtf2html1.HTML_Title = "hello, sample title"
rtf2html1.Plain_Text = rtf1.Text
rtf2html1.Generator = "My Own RTF-2-HTML Convertor"
rtf2html1.CleanRTF = "yes"
rtf2html1.Links = "yes"
rtf2html1.DoDebug = "yes"
rtf2html1.ConvertImages = "no"
rtf2html1.ImageFolder = "c:\"
rtf2html1.ImageFormat = "jpg"
rtf1.Text = rtf2html1.ConvertPlainHTML |