Code for Convert RTF Text to HTML

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
Back
Top