Home All Groups Group Topic Archive Search About

Code for Convert RTF Text to HTML

Author
16 Jan 2006 2:13 PM
Husam
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

Author
16 Jan 2006 3:31 PM
Tim Anderson
"Husam" <Hu***@discussions.microsoft.com> wrote in message
news:3FEE8471-A7C7-4BFB-8E74-80368279E42E@microsoft.com...

> The Code:
>
> With ALLText

Looks like this code uses the ALLText OCX component from Bennet-tec:

http://www.bennet-tec.com/btproducts/ALLText/ALLText.htm

You'll need to obtain the control and test with with VB.NET if you want to
reuse the code.

Tim
Background worker exceptions in .NET 2.0
http://www.itwriting.com/blog/?postid=276