October 2000
Intermediate to advanced
384 pages
10h 22m
English
Content preview from CDO & MAPI Programming with Visual Basic:Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
Start your free trial



Sending OLE Objects
MAPI
supports embedding one document inside another, a concept known as
OLE in Windows parlance. The document to be
embedded in the message must have been previously saved as an OLE
docfile (see sidebar). To attach it to a
message, specify the parameters to the Attachment collection’s
Add method as follows:
Set the
Typeparameter toCdoOle.Set the
Sourceparameter to the full path and filename of thedocfile.Set the
Positionparameter to the character position within the message text at which the receiving mail client should render the object.Set the
Nameparameter to an empty string, or omit it from the parameter list.