Printer Object
 
Syntax
 
Result = Printer.SetRTF2html(rtfText[, Quoted])
 
Description
Converts the RTF formatted string rtfText into a properly formatted html string. Optionally, the html string can be formatted as quoted string. Quoted strings are commonly used for exporting data and do not contain any line feeds.
 
NOTE: this function works stand-alone and does NOT require a Printer.Init instruction
 
Parameter
Description
rtfText
A string of RTF formatted text that needs to be converted
Quoted
Optional. When TRUE the output string will no longer contain line feeds and will be set up as a quoted string ("...")
Result
When successful, the function returns the html formatted string.
See Also
Example
 
Sub Main
 
Dim rtf$
 
rtf$ = "{\rtf\.......}"   'replace with rtf-contents
 
Msgbox Printer.SetRTF2html(rt$, True)
 
End Sub