Copies all items in the current document into the destination document. The item names are unchanged.
public void copyAllItems(Document doc, boolean replace)
throws NotesException
Document
The destination document.
boolean replace
If true, the items in the destination document are replaced. If false, the items in the destination document are appended.
If you are not copying to a newly created document, you should probably specify true for the second parameter. See appendItemValue for a note about appending items to existing documents.