Export a NotesRichTextItem to a file - MS Word

Greetings,

I am trying to find a way to export a NotesRichTextItem to a rtf file (ex: Test.rft).

Any help on this will be great.

Thanks in advance!!

Subject: Export a NotesRichTextItem to a file - MS Word

There’s no back-end method, but @Command([FileExport]) can export the entire document (and you can arrange things so that the document displays only the rich text item).

Subject: RE: Export a NotesRichTextItem to a file - MS Word

Thanks for the response. I shall check that out.

Subject: RE: Export a NotesRichTextItem to a file - MS Word

You could use copy and paste

Dim workspace As New NotesUIWorkspace

Dim uidoc As NotesUIDocument

Set uidoc = workspace.CurrentDocument

Call uidoc.GoToField( "RTField" )

Call uidoc.SelectAll

Call uidoc.Copy



Set WordObj = CreateObject("Word.Application")

WordObj.visible = True

Set WordDoc = WordObj.Documents.Add()

Call WordObj.Selection.Paste

Subject: RE: Export a NotesRichTextItem to a file - MS Word

Great this helps a lot!!Thank you very much!!