Hi, I have searched the forum and whilst there are entries on this subject, they didn’t quite answer my problem so am posting a new entry just in case.
I want to create a Word document from a collection of Notes documents but 2 of the fields I want to put into the Word Doc are RTF’s. My word doc has a table so I am populating cells. I have successfully generated Word docs from Notes docs before but they didn’t have any RTF’s. Some entries say about copy/paste into Word but this is when the doc is in the UI presumably. I want to do it as a backend process.
Formatting is to be retained so converting to text is not an option unfortunately.
Can anyone help me please … ?
Many thanks in advance.
Andy
Subject: Creating Word Document and Rich Text Fields.
Andy, I have successfully put a rich text field into a Word document. However I created a word template and for regular fields I was creating FormFields and tables, but this did not work for the rich text fields. So I just named a bookmark for the start point of the rich text field. In my Lotusscript code I set
MyRange= Wordobject.bookmarks(“bookmarkname”).range
myRange.text = doc.comments
The comments fields is a rich text field and the doc is a notesdocument. There wasn’t attachments in Comments, but there were tabs and paragraph formatting.
Hope this helps
Subject: RE: Creating Word Document and Rich Text Fields.
Hi Julie, Thanks for this. I will give it a go and let you know how I get on.
…
Tried it now and it does work but doesn’t retain fonts. Bolding, italic etc etc …
Is there any way to do that … ? Hope so …!!
Cheers.
Subject: Creating Word Document and Rich Text Fields.
If you want this in the backend, you may be stuck going with a third party solution. We offer our Midas Rich Text LSX which will do this (see Exporting to MS Word for a description of a basic export, but you can also put all the separate docs together and do this), but there are other offerings as well. I think Integra has the ability to export to MS Word, and possibly Looseleaf Software’s Script Expander does, although that may just use the export filters.
Subject: RE: Creating Word Document and Rich Text Fields.
Hi Ben, Thanks for this. Was my fear that this would be the case. Trouble is, this export will only be done on a limited basis as this project is for a particular case my firm is working on.
How about a freeby version of your package, I can make my user a happy chappy and I will tell everyone what a great product it is … honest …!!!
Cheers
Andy