Code for Convert RTF Text to HTML

G

Guest

Hi EveryBody:

I have this code which convert RTF Text to HTML ? but I think it is written
by vb.classic, I want some body help my in writting this code by Vb.Net ?
but if it is already writen by Vb.Net I want some body simplify it for me ?

And I want to use TextBox instaed of RichTextBox if possibale ..

The Code:

With ALLText
' Specify RTF formatted Text string
.FText = RTFString
' Convert to HTML
.SelStart = 0
.SelLength = . TextLength
.Rtf2Html 31
.selFType = -31
HTMLString = .FText

' Convert back to RTF
.SelFType = 63
RTFString = .FText

' Get the Raw Text
RawTextString = .Text

End With

Any Help will be appreciated

regard's

HUsam
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top