belle
作者belle·2013-07-04 15:49
软件开发工程师·IT

拷贝域:CopyItemToDocument / CopyAllItems

字数 990阅读 560评论 0赞 0
1.CopyItemToDocument
Set notesItem = notesItem.CopyItemToDocument( document, newName$ )
如:
Set itemA = doc.GetFirstItem( "Body" )
Set itemB = doc.GetFirstItem( "BriefDescription" )
Set memo = New NotesDocument( db )
Call itemA.CopyItemToDocument( memo, "Body" )  //新建memo文档,并新建body域,以item中的值作为值
Call itemB.CopyItemToDocument( memo, "Subject" )
Call memo.Send( False, "Cynthia Brainey" )
 
2.CopyAllItems
Call notesDocument.CopyAllItems( notesDocument [, replace ] )
Parameters:
notesDocument
The destination document.
replace
Boolean. If True, the items in the destination document are replaced. If False (default), the items in the destination document are appended.
Set docA = collection.GetFirstDocument()
  If Not (docA Is Nothing) Then
    Set docB = New NotesDocument( db )
    Call docA.CopyAllItems( docB, True )
    Call docB.Save( True, True )
  Else
    Messagebox "No documents found"
  End If
 

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

0

添加新评论0 条评论

Ctrl+Enter 发表

作者其他文章

相关文章

相关问题

相关资料

X社区推广