Hi guys, my big problem is this:
I need to visualize from a notes client some
formatted text with images (like when you copy and paste a selection of an html page from browser to an RTF).
I tryed to use MIME but i can only display text without images… or i can display only one image reading the binary file
Please help me!
Thanks a lot in advance
P.S.
This is the code I used:
htmltext$ = {This is an HTML message.
}
Dim session As New NotesSession
Dim html As NotesStream
Set html = session.CreateStream
html.WriteText htmltext$
Dim doc As New NotesDocument(session.CurrentDatabase)
Dim mime As NotesMIMEEntity
Set mime = doc.CreateMIMEEntity(“Body”)
mime.SetContentFromText html, “text/html”, ENC_NONE
doc.form = “Prova”
Call item.remove
Call doc.Save(False, False)
Subject: How to convert an HTML Page (with images) to RTF body?
Even though this answer come after one year, I put it to be a reference for others.
If you want to import a HTML with pictures and tables into a RichText field you could use some dll files from Notes client.
If you take a look on your machine in lotus\notes folder you will see a lot of dll files. One of them, named NIHTML.DLL contains a function - ImportHtmlTextFile. It works ok if you use in your html file pictures stored in Shared Resources section of the database.
There are some examples on this forum:
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/f79dcfeb19a132da85256da500352be5?OpenDocument&Highlight=0,nihtml
http://www-10.lotus.com/ldd/nd6forum.nsf/55c38d716d632d9b8525689b005ba1c0/0463e4c53b383c5d85256d42003ec6fa?OpenDocument&Highlight=0,importrtf
You can take a look
Have fun!