Skip to Content
CDO & MAPI Programming with Visual Basic:
book

CDO & MAPI Programming with Visual Basic:

by Dave Grundgeiger
October 2000
Intermediate to advanced
384 pages
10h 22m
English
O'Reilly Media, Inc.
Content preview from CDO & MAPI Programming with Visual Basic:

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:

  1. Set the Type parameter to CdoOle.

  2. Set the Source parameter to the full path and filename of the docfile.

  3. Set the Position parameter to the character position within the message text at which the receiving mail client should render the object.

  4. Set the Name parameter to an empty string, or omit it from the parameter list.

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,
and much more.
Start your free trial

You might also like

Excel® 2007 VBA Programmer's Reference

Excel® 2007 VBA Programmer's Reference

John Green, Stephen Bullen, Rob Bovey, Michael Alexander
COM Programming with Microsoft® .NET

COM Programming with Microsoft® .NET

John Paul Mueller, Julian Templeman

Publisher Resources

ISBN: 156592665XSupplemental ContentCatalog PageErrata