Sample Visual Basic
Code to convert an RTF document to HTML, ready for insertion in a
webpage using ASP:
In this sample all of the
properties of the control are used.
Where rtf2html1 is an instance of
an RTF-2-HTML control.
rtf2html1.HTML_Colour =
"white"
rtf2html1.HTML_Title = "my title"
rtf2html1.RTF_Text = rtfVariable
rtf2html1.Generator = "My Own RTF-2-HTML Convertor"
rtf2html1.CleanRTF = "yes"
rtf2html1.CleanHTML = "no"
rtf2html1.XHTMLOutput = "no"
rtf2html1.Links = "yes"
rtf2html1.DoDebug = "yes"
rtf2html1.ConvertImages = "yes"
rtf2html1.ImageFolder = "c:\"
rtf2html1.ImageFormat = "jpg"
theHTML = rtf2html1.ConvertNoBody
|