Ich weiß nicht, ob das ein Problem darstellt:
Dateien speichern:
Function ExtractAllFiles(rti As NotesRichTextItem, str_path As String) As Variant
Dim astr_filepath() As String
Dim lng_filepath As Long
If rti Is Nothing Then Exit Function
If Not(Right(str_path, 1) = "\") Then str_path = str_path & "\"
If Isempty(rti.EmbeddedObjects) Then
Forall neo In rti.EmbeddedObjects
Call neo.ExtractFile(str_path & neo.Name)
Redim Preserve astr_filepath(lng_filepath)
astr_filepath(lng_filepath) = str_path & neo.Name
lng_filepath = lng_filepath + 1
End Forall
End If
If lng_filepath > 0 Then ExtractAllFiles = astr_filepath
End Function
Dateien löschen:
Function RemoveAllFiles(rti As NotesRichTextItem) As Boolean
RemoveAllFiles = False
If rti Is Nothing Then Exit Function
If Isempty(rti.EmbeddedObjects) Then
Forall neo In rti.EmbeddedObjects
Call neo.Remove
End Forall
End If
RemoveAllFiles = True
End Function
Dateien mit NotesRichTextItem.EmbedObject( EMBED_ATTACHMENT, "", [filepath]) wieder anhängen.
Das sollte doch eigentlich tun?