HOWTO: Embedding a Document in a Message using Active MessagingLast reviewed: November 21, 1997Article ID: Q169031 |
The information in this article applies to:
SUMMARYUsing Active Messaging, it is possible to embed a file in a message so that the contents of the file are viewed when the message is opened--for example, embedding a bitmap into the message so that the actual bitmap appears when you open the message.
MORE INFORMATIONThe code provided is a sample of performing this task in Microsoft Visual Basic.
Steps to Embed a File in a Message
Other Types of Message AttachmentsBelow are the four types of attachments that may be specified for a message and the corresponding Active Messaging 1.1 constants used when assigning the Type property of the attachment:
Type property Source property ---------------- --------------------------------------------- ActMsgFileData Not used. The source for this type of attachment must be specified in the call to the Add method or later with the ReadFromFile method. ActMsgFileLink Specifies a full path name in a universal naming convention (UNC) format, such as \\Sales\Info\Product\News.doc. ActMsgOLE Specifies the registered OLE class name of the attachment, such as Word.Document or PowerPoint.Show. The actual file contents would be loaded with the ReadFromFile method. ActMsgEmbeddedMessage Specifies the unique identifier of the message to be embedded; returns the embedded Message object. REFERENCESFor additional information about Collaboration Data Objects versus Active Messaging, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q176916 TITLE : INFO: Active Messaging and Collaboration Data Objects (CDO)Microsoft Developer Network, Platform SDK, "Source Property (Attachment Object)" Keywords : kbcode ActMsg OLEMSG Technology : kbole Version : 1.0 1.1 4.0 5.0 Platform : WINDOWS Issue type : kbhowto |
================================================================================
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |