Easy way to export doc as HTML file?

Is there an easy way to generate an HTML file based on a Notes document (including Rich text fields)?

Subject: Easy way to export doc as HTML file?

There are a variety of ways. It partly depends on the complexity of your rich text and your requirements for the HTML. The cheapest way is to let the HTTP process render to HTML, but the HTML generated has assumes the http process, so images will point back to the document through http and Notes specific functions often won’t work off-line. A more expensive (in terms of time) solution is to export to DXL and convert the DXL to HTML using XSL. If your rich text is fairly simple, this might be a good option. If you don’t mind spending a bit of money, a third party product such as our Midas Rich Text LSX can create high quality, compliant HTML directly from your Notes data, and allows a lot of control over where the images and attachments are stored and how links, sections, tabbed tables, etc. are handled. It is a commercial product though.

Subject: RE: Easy way to export doc as HTML file?

Is there a way to programmatically render to HTML through the HTTP process?

Subject: Easy way to export doc as HTML file?

I am not sure if you will think this is easy, but I had exactly this need and here is how I did it.

Using the microsoft.msxml capability, I am able to “get” a web page from Lotusscript.

It is a bit odd, but the domino server can fetch the page from itself, and the result is that the contents of a web page is stored in a single string. You can write this string to a file or do whatever you need.

Subject: RE: Easy way to export doc as HTML file?

Interesting… what API do you use to accomplish this?