This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


Jun 6, 2014, 1:21 PM
18 Posts
topic has been resolvedResolved

Copy Rich Text Item From One Document to Another

  • Category: Domino Designer
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags: Rict Text
  • Replies: 2

I have two documents(DocA and DocB). Each document has a Rich Text Field.

In DocA, the rich text field (Field A) contains a Doclink to a document residing in another database.

I wish write a script that copies the contents of the rich text Field (including the Doclink) from DocA to the rich text field in DocB. The Rick text field in DocB should also contain the Doclink.

I have been pulling my hair out over this one and can't get it to work.

Help please!

Jun 6, 2014, 10:36 PM
82 Posts
Some sample doc
doc1 below has the link which is copied to doc2

Dim session As New NotesSession,db As NotesDatabase,linkItem As notesitem
Dim dc As NotesDocumentCollection,doc1 As NotesDocument, doc2 As NotesDocument
Set db = session.Currentdatabase
Set dc = db.Unprocesseddocuments
Set doc1 = dc.Getfirstdocument()
Set linkItem = doc1.getfirstitem("Body")
Set doc2 = dc.Getnextdocument(doc1)
Call doc2.copyitem(linkItem,"Body")
doc2.save True,false

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal