It directly deals with this one: Cannot instanciate a NotesUIWorkspace from VBA (Word)

As the machines will have Win7 64 this old way isn't appropiate any more.

So how can I copy formatted text that is stored in a NotesRichtextItem, including tables, into a Word document at a predefined space? My idea, without a proof is to use XML to extract RTF content, replace some unformatted text values (this is also a goal) and transfer it into the Word doc via VBA or LS. Both ways are ok. I am able to use the Notes backend classes from my VBA code though, only the NotesUIWorkspace will not be available in a 64bit environment.

有帮助吗?

解决方案

One possible approach would be to get the NotesRichTextItem content as HTML, and then use whatever facilities are available to you in VBA to work with that HTML and get it into your Word doc.

The answers to this question describe several possible ways that you might be able to use to get HTML from the rich text.

其他提示

You should be able to access the NotesRichTextItem and walk through using the NotesRichTextNavigator to find each NotesRichTextRange, then get the type (which can be table or table cell) and style. You should be able to build your Word doc from the strings and style using VB, perhaps including table elements. Theoretically, at least.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top