EasyByte Software

Welcome to EasyByte Software

Home Buy Online Products Downloads Support
ASP and dotNET
Further Information



ConvertRawHTML Method

RTF-2-HTML v8 User Guide


ConvertRawHTML Method

This is the method that you would use to convert a partial RTF Document to a partial HTML document.

The generated HTML will NOT HAVE header and Body tags OR any layout tags, this setting is designed for use in an ASP environment, where you would want to insert some generated HTML from RTF without modifying the ASP pages look in a browser or interfering with any style constraints you may have placed on the ASP page.



Converts an RTF document to HTML without body or header tags or any layout tags.


x = object.ConvertRawHTML

The syntax of the ConvertRawHTMLmethod has these parts:

Part Description
object An RTF-2-HTML v8 control.
x A string that becomes the result of the conversion. 

Remarks It is highly recommended that you set the CleanRTF property of the control to 'yes', this will result in much better conversion.


Example Sample Visual Basic Code to convert an RTF document to HTML, ready for insertion in a webpage using ASP:

In this sample all of the properties of the control are used.

Where rtf2html1 is an instance of an RTF-2-HTML control.

rtf2html1.HTML_Colour = "white"
rtf2html1.HTML_Title = "my title"
rtf2html1.RTF_Text = rtfVariable
rtf2html1.Generator = "My Own RTF-2-HTML Convertor"
rtf2html1.CleanRTF = "yes"
rtf2html1.CleanHTML = "no"
rtf2html1.XHTMLOutput = "no"
rtf2html1.Links = "yes"
rtf2html1.DoDebug = "yes"
rtf2html1.ConvertImages = "yes"
rtf2html1.ImageFolder = "c:\"
rtf2html1.ImageFormat = "jpg"

theHTML = rtf2html1.ConvertRawHTML






Back to Contents Page


Click here to set this great site as your home page

Or click here to add it to your Favorites.


Copyright (c) EasyByte Software 2007, info@easybyte.com