• Export complete RTF content to Word DOCX?

    By Oliver Busse 1 decade ago

    Is it possible to export a whole NotesRichtext content (formatted text with images) to a Word document? I played around a little and got it generally working but the exported document contains the unformatted text only.

    My way was to create a bookmark in the used Word template called <> and set a bookmark in the POI control to render the item value of my Richtext item. 

    Is there a way to get the complete RTF rendered to a Word doc?

    • RichText Item is not RichTextItem :)

      By Christian Güdemann 1 decade ago

      Hello Oliver

      Richtextitem are littlebit a difficulte Story. When you use a new "XPage - only" Application with databinding to richtext elements, this elements where saved as MIME elements. And this elements can easily converted in HTML. There are some helper classes in the XPage Framework, but transforming "old" rt elements is much heavier.

      But this is only one side of the medal. On the other hand, we must find a way how POI can handle HTML to the word document. I didn't check this. If you know how to do this, please let me know.

      And if you find a way to bring HTML Code correctly in the word document, then you can use the postGeneration Method to apply this to the document (until we have decide to support this feature request).

      Best regards

      Christian