Autor Thema: Copying an Item  (Gelesen 3520 mal)

Offline Jörg

  • Aktives Mitglied
  • ***
  • Beiträge: 175
Re: Copying an Item
« Antwort #20 am: 24.11.05 - 15:34:07 »
Genau ....

Ich probiere es mal einzubinden...

Gruss Jörg

Offline Jörg

  • Aktives Mitglied
  • ***
  • Beiträge: 175
Re: Copying an Item
« Antwort #21 am: 24.11.05 - 16:10:10 »
Super klappt, Thank.

So sieht der Code nun aus
Code
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim doc As NotesDocument, doc2 As NotesDocument
Set uidoc = workspace.CurrentDocument
Set doc = uidoc.Document
Set db = session.CurrentDatabase
Set doc2 = New NotesDocument(db)
Call doc.CopyAllItems(doc2)
doc2.titel = "Copy: " & doc.titel (0)
Call doc2.Save(True, False)
End Sub

Gruss Jörg

 

Impressum Atnotes.de  -  Powered by Syslords Solutions  -  Datenschutz