Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help in modules

Status
Not open for further replies.

mettodog

Vendor
Jul 11, 2000
94
US
i have been working on a program to convert rtf to html for about 2 weeks, then last night i came across a module that will do exactly what i want it to. the problem is... i know NOTHING about using modules and such. i have to get this program complete by monday, i need someone to help me with using this code. the code can be downloaded from here


if anyone can help me on putting this code into a program and using it, please help me!!
 
All you should have to do is include the module in your project (go to 'Project', 'Add Module' and select 'Existing'), then use the function RTF2HTML to convert your rtf to HTML, like this:

Text1.Text = RTF2HTML(rich_text_variable, OPTIONS)

So, if you have a variable strRichText which holds your rich text that you want to convert and you want a header in the returned HTML you would use:

Text1.Text = RTF2HTML(strRichText, "+H")

A description of the valid options is included in the comments at the top of the module.

Simon
 
I need help with this blasted RTF2HTML. We are attempting to make an activeX which will convert RTF 2 HTML. We have this code but we cannot connect it with our rich text box.

Please assist.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top