Members

Technology Zones

Articles

Hosted By

MaximumASP

Info

Rated
Read 94,915 times

Downloads

Related Categories

Convert RTF to HTML

Brady H

Visual Basic module which changes text from RTF to HTML. Note that it requires an entire RTF document including header codes, however the text it outputs does not include the HTML header codes. This is a feature not a bug since the header codes are much easier to add than to remove.
The program currently supports the following:

  • Most if not all ascii characters are converted from RTF codes to HTML codes
  • Bold, Italicized, Strikeout and Underlined text
  • Bulleted lists
  • Colored fonts
  • Fonts
  • Font Size
  • Centered and Right justified text
  • Produces clean and correct HTML
  • Other stuff...

Use the following function in the module to perform the conversion:

Function rtf2html3(strRTF As String, Optional strOptions As String) As String

More information can be found here

Comments

  • Posted by shovmyfist on 05 Aug 2005

    i am really confused on how to call this function. I have a .rtf file lets say and i dont want any of the options so i just want to call this function out of my main .asp page and then have the .rtf b...

  • Dot Matrix Print

    Posted by impartha on 03 Jun 2005

    Hi Dears

    I am developing in VB6. I want to take any print from Data Report to Dot Matrix Printer. I using Data Report (VB6) not any Crystal Reports. If it is possible to take any print to Dot Matri...

  • HTML to RTF?

    Posted by jayes99 on 28 Jun 2004

    Can this convert HTML code to RTF code?

  • Posted by James Crowley on 22 Jan 2004

    Apologies - it seems in the conversion from source code to HTML on this website, a few errors were introduced. We're now hosting a Zip file with the source code instead.

  • Arghhh!!

    Posted by Mike99 on 20 Oct 2003

    I tried a number of RTF files against this and this code seems to cut chunks of the actual text off!!

    I found another RTF -> HTML convert at www.easybyte.com, it seems to do the job fine.