FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour RTF to HTML for email
Posts: 1195
Joined: Mon Oct 17, 2005 05:41 AM
RTF to HTML for email
Posted: Sat Jul 27, 2019 12:12 PM

Hello,

Is it possible to convert the RTF created with richedit to HTML to create a HTMLBODY in the outlook object?

Thank you

Regards,

Marc



FWH32+xHarbour | FWH64+Harbour | BCC | DBF | ADO+MySQL | ADO+MariaDB | ADO+SQLite
Posts: 6755
Joined: Wed Feb 15, 2012 08:25 PM
Re: RTF to HTPM for email
Posted: Sat Jul 27, 2019 12:23 PM

You have METHOD SaveAsHtml
Then, save file with format Html.
Open the file you created, and read the contents of the file ( METHOD cText() ), or select all text ( SelectAll METHOD )
I have never done it but I think it should work

Cristobal Navarro

Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo

El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces

Continue the discussion