I am looking for a way to extract/generate the HTML markup from a Rich Text field content using Lotusscript (from a background agent).
The idea was to use the Rich Text field in the Lotus form, so that people with less HTML experience can do things more easily by copying and pasting the content in the respective fields in documents through Notes client.
Later using Lotusscript we want to access the content and output in a custom fashion to the browser.
I have already checked out the following resources for this purpose but both of them turned not working for me.
If those resources weren’t enough to help you build what you hope to achieve, perhaps it’s time to look at a purchased solution. Genii Software has put untold engineering hours into their products to provide high-fidelity rich-text<->HTML co-existence and manipulation. You should take a look at CoexEdit and the Midas Rich Text LSX. http://www.geniisoft.com/
FWIW, I have no financial interest or connection to the company.
If the purpose is to be able to move back and forth between notes and web, save yourself the trouble and buy a solution, as anything that you come up with, will probably end up not being reliable.
However, if its a one time, one way conversion, you can load up the notesdocuments on web, using java HttpConnection, and download the autogenerated html. You can also get embedded images and files in this way with some clever html parsing. However, expect some Java coding to be able to do this.