From: John Martens on
Did anyone make a class to convert rtf (or .doc) to HTML ?

I would like to show formatted text on a HTML page which is entered in a
VO rtf control.

John
From: richard.townsendrose on
John

you could always print to reportpro, exporting as html ...

create a table with two fields - one a memo for the rtf, add one
record - a key [something for reportpro to parse] and the rtf.

something like this - based on our code - we do this for things like
printing settings - create a formatted string and ...

ELSEIF Upper(cExportType) == 'HTML'
symExportType:= #RP_HTML
cFullFilePathName:=cFullFilePathName + ".HTML"
SUPER:PrintExport(cCaption,cMessage, symExportType,
cFullFilePathName)
// check file is there ok.
lGotFile:=File(cFullFilePathName)
ENDIF

richard

From: Karl Wochele on
Hi John,

you can have a look at
http://www.docfrac.net/index.php

it doesn't respect all formatting, but it works to a certain degree.

You will need:

_DLL FUNCTION DoxConvert(cInFile AS PSZ,cOutFile AS PSZ,nOptions AS
LONG) AS LONG PASCAL:doxlib._DoxConvert
_DLL FUNCTION DoxStringConvert(cInput AS PSZ,nInLen AS LONG,cOutput AS
PSZ,nOutLen AS LONG,nOptions AS LONG) AS LONG
PASCAL:doxlib._DoxStringConvert

DEFINE doc_rtf := 0
DEFINE doc_html := 1
DEFINE doc_text := 2
DEFINE doc_word := 3
DEFINE DOX_IN_HTML := (doc_html+1)
DEFINE DOX_IN_RTF := (doc_rtf+1)
DEFINE DOX_IN_TEXT := (doc_text+1)
DEFINE DOX_OUT_HTML := ((doc_html+1)<<4)
DEFINE DOX_OUT_RTF := ((doc_rtf+1)<<4)
DEFINE DOX_OUT_TEXT := ((doc_text+1)<<4)



HTH
Karl

John Martens schrieb:
> Did anyone make a class to convert rtf (or .doc) to HTML ?
>
> I would like to show formatted text on a HTML page which is entered in a
> VO rtf control.
>
> John
From: E®!k /!sser on
Hi John,

Perhaps a bit overdone, but you could (using automation) read the RTF file
into MS Word and save the file as HTML.

hth
Erik


"John Martens" <adsl672100(a)tiscali.nl> schreef in bericht
news:4b1bfbe0$0$28167$5fc3050(a)news.tiscali.nl...
> Did anyone make a class to convert rtf (or .doc) to HTML ?
>
> I would like to show formatted text on a HTML page which is entered in a
> VO rtf control.
>
> John

From: John Martens on
Karl,

Thanks for the link. I only need the basics of markup so that won't be a
problem.

I would expect DoxStringConvert(cInput AS PSZ,nOptions AS LONG) AS PSZ
to be the call.
What's the nInLen and nOutLen for ?
Do you have a VO line where you call the EXE ?

Does the EXE show when calling it ?

Cheers,
John


Karl Wochele schreef:
> Hi John,
>
> you can have a look at
> http://www.docfrac.net/index.php
>
> it doesn't respect all formatting, but it works to a certain degree.
>
> You will need:
>
> _DLL FUNCTION DoxConvert(cInFile AS PSZ,cOutFile AS PSZ,nOptions AS
> LONG) AS LONG PASCAL:doxlib._DoxConvert
> _DLL FUNCTION DoxStringConvert(cInput AS PSZ,nInLen AS LONG,cOutput AS
> PSZ,nOutLen AS LONG,nOptions AS LONG) AS LONG
> PASCAL:doxlib._DoxStringConvert
>
> DEFINE doc_rtf := 0
> DEFINE doc_html := 1
> DEFINE doc_text := 2
> DEFINE doc_word := 3
> DEFINE DOX_IN_HTML := (doc_html+1)
> DEFINE DOX_IN_RTF := (doc_rtf+1)
> DEFINE DOX_IN_TEXT := (doc_text+1)
> DEFINE DOX_OUT_HTML := ((doc_html+1)<<4)
> DEFINE DOX_OUT_RTF := ((doc_rtf+1)<<4)
> DEFINE DOX_OUT_TEXT := ((doc_text+1)<<4)
>
>
>
> HTH
> Karl
>
> John Martens schrieb:
>> Did anyone make a class to convert rtf (or .doc) to HTML ?
>>
>> I would like to show formatted text on a HTML page which is entered in
>> a VO rtf control.
>>
>> John
 |  Next  |  Last
Pages: 1 2
Prev: Binary Data Readback
Next: Link Failed