Hi,
I need detach embedded image from “notes” to File System.
I try with the following code in a button:
Dim doc As NotesDocument
Dim ws As New NotesUIWorkspace
Set doc = ws.CurrentDocument.Document
Dim rtitem As Variant
Dim fileCount As Integer
fileCount = 0
Set rtitem = doc.GetFirstItem( "Body" )
If ( rtitem.Type = RICHTEXT ) Then
Forall o In rtitem.EmbeddedObjects
If ( o.Type = EMBED_ATTACHMENT ) Then
fileCount = fileCount + 1
Call o.ExtractFile _
( "c:\newfile" & Cstr(fileCount) )
End If
End Forall
End If
this work fine, but only for Attachment Files.
any idea?
thanks in advance.