HiI am attaching a file in a document using
Call rtItem.embedObject(1454, “”, v2FileNames)
now in an agent, i need to extract all files attached to this document, so i do:
Forall o In viewdoc.EmbeddedObjects
Call o.ExtractFile( "c:\temporary\" & o.Source )
Now, I get a type mismatch error in the forall staement. If in the form, i embed the file using :
Call rtItem.embedObject(1453, “”, v2FileNames)
I do not get the error but i obviously cannot extract the file.
I cant seem to understand the problem. Please help.
Thanks in advance
Subject: RE: doc.embeddedObjects property gives an Error
from the designer help on document embedded objects"Unlike the EmbeddedObjects property in NotesRichTextItem, this property does not include file attachments, nor OLE/1 objects created in Notes Release 3.
This property does include OLE/2 and OLE/1 objects created in Notes Release 4. It also includes objects in the document that were originally embedded in the document’s form"
So try and get a handle to the item in which you created the attachment and do the foraal on the embedded objects in that item
regards