Hallo Forum,
Nachschlag: Mit dem augenblicklichen Code kann das eingebundene Dokument editieren, aber leider nicht in der Mailmaske. Wie bekomme ich die Memo-Maske mit hoch?
Hier mein Code:
Sub Click(Source As Button)
Dim session As New NotesSession
Dim workspace As New NotesUIWorkspace
Dim maildb As NotesDatabase
Dim db As NotesDatabase
Dim uidoc As NotesUIDocument
Dim docA As NotesDocument
Dim docB As NotesDocument
Dim rtitem As NotesRichTextItem
Dim success As Variant
Set db = session.CurrentDatabase
Set uidoc = workspace.CurrentDocument
Set docA = uidoc.Document
Set Maildb = Session.GetDatabase("", MailDbName)
Maildb.OpenMail
Set docB = New NotesDocument(Maildb)
docB.Form = "Memo"
Set rtitem = New NotesRichTextItem( docB, "Body" )
Call docB.Save( True, True )
success = docA.RenderToRTItem( rtitem )
Call workspace.EditDocument( True )
docB.SendTo = "Mailadresse"
docB.Subject = "Text"
docB.SEND 0
Call docB.Save( True, True )
End Sub