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