title: How to export Rich Text fields as HTML from Notes with LotusScript?
body: <p>I'm working on a data migration task, where I have to export a somewhat large Lotus Notes application into a blogging platform. My first task was to export the articles from Lotus Notes into CSV files. </p>
  
  <p>I created a Agent in LotusScript to export the data into CSV files. I use a modified version of this <a href="http://www-10.lotus.com/ldd/nd6forum.nsf/CategoryAllThreadedweb/480b174af9f97924852575f60056bd84?OpenDocument" rel="nofollow noreferrer">IBM DeveloperWorks forum post</a>. And it basically does the job. But the contents of the Rich Text field is stripped of any formatting. And this is not what I want, I want the Rich Text field rendered as HTML.</p>
  
  <p>The <a href="http://www.unitedtechnologysolutions.com/help/help8_designer.nsf/f4b82fbb75e942a6852566ac0037f284/dbbb58452d3909b58525731b004a1855?OpenDocument" rel="nofollow noreferrer">documentation for the GetItemValue</a> method explicitly states that the text is rendered into plain text. So I began to research for something that would retrieve the HTML. I found the NotesMIMEEntity class and some sample code in the IBM article <a href="http://www-01.ibm.com/support/docview.wss?uid=swg21091054" rel="nofollow noreferrer">How To Access HTML in a Rich Text Field Using LotusScript</a>.</p>
  
  <p>But for the technique described in the above article to work, the Rich Text field need to have the property "Store Contents as HTML and MIME". And this is not the case with my Lotus Notes database. I tried to set the property on the fields in question, but it didn't do the trick. </p>
  
  <p>Is it possible to use the NotesMIMEEntity and set the "Store Contents as HTML and MIME" property after the content has been added, to export the field rendered as HTML?</p>
  
  <p>Or what are my options for exporting the Notes database Rich Text fields as HTML?</p>
  
  <p>Bonus information: I'm using IBM Lotus Domino Designer version 8.5</p>