| Dim ws As New NotesUIWorkspace |
| Dim uidoc As NotesUIDocument |
| Dim dc As NotesDocumentCollection |
| Dim docSource As NotesDocument |
| Dim docThis As NotesDocument |
| Dim itemSource As NotesRichtextItem |
| Dim itemTarget As NotesRichtextItem |
| Dim sSource As String |
| Dim sTarget As String |
| Dim sServer As String |
| Dim sDBName As String |
| Dim sAnsicht As String |
| Dim sTitel As String |
| Dim sAufforderung As String |
| |
| sSource = "VInhalt" |
| sTarget = "AZwischen" |
| |
| Set docThis = ws.CurrentDocument.Document |
| |
| |
| Set itemTarget = docThis.GetFirstItem( sTarget ) |
| If Not itemTarget Is Nothing Then |
| If itemTarget.Type = 1 Then |
| |
| Else |
| |
| Call docThis.RemoveItem( sTarget ) |
| Call docThis.CreateRichTextItem( sTarget ) |
| Set itemTarget = docThis.GetFirstItem( sTarget ) |
| End If |
| Else |
| Call docThis.CreateRichTextItem( sTarget ) |
| Set itemTarget = docThis.GetFirstItem( sTarget ) |
| End If |
| |
| sServer = "" |
| sDBName = "Backup\Aufgaben.nsf" |
| sAnsicht = "AlleVorlagennachName" |
| sTitel = sAnsicht |
| sAufforderung = "Wählen Sie ein Dokument..." |
| Set dc = ws.PickListCollection( 3, False , sServer , sDBName , sAnsicht , sTitel , sAufforderung ) |
| If dc.Count > 0 Then |
| Set docSource = dc.GetFirstDocument |
| If Not docSource Is Nothing Then |
| Set ItemSource = docSource.GetFirstItem( sSource ) |
| If Not itemSource Is Nothing Then |
| If itemSource.Type = 1 Then |
| Call itemTarget.AppendRTItem( itemSource ) |
| |
| |
| docThis.Form = "Aufgabe" |
| Call docThis.Save( True , True ) |
| docThis.SaveOptions = "0" |
| Set uidoc = ws.CurrentDocument |
| Call uidoc.Close |
| Set uidoc = ws.EditDocument( True , docThis ) |
| |
| Set docThis = uidoc.Document |
| If docThis.HasItem( "SaveOptions" ) Then |
| Call docThis.RemoveItem( "SaveOptions" ) |
| Call docThis.Save( True , True ) |
| End If |
| Print "... die Information wurde hinzugefügt." |
| Else |
| Print " ... das Quellfeld ist kein Richtext-Feld..." |
| End If |
| Else |
| Print " ... es gibt kein Quellfeld zum Anhängen..." |
| End If |
| Else |
| Print " ... es gibt kein gültiges Quelldokument..." |
| End If |
| Else |
| Print " ... es wurde kein Dokument in der Auswahl bestimmt..." |
| End If |