OL2000: Setting Body Property May or May Not Remove Objects (254010)



The information in this article applies to:

  • Microsoft Outlook 2000

This article was previously published under Q254010

SYMPTOMS

When you use the Outlook object model to set the Body property of an Outlook item, objects in the body of the item may be deleted in some cases, but not others.

NOTE: This article applies to all objects that are pasted into the body of the message or inserted by using the Insert Object command. It does not apply to file attachments, which are typically inserted using the Insert File command.

CAUSE

Outlook's behavior varies depending on whether or not an item has been saved. If an item is saved, objects are saved as hidden attachments, and if you set the Body property of an item, it does not remove these saved attachments.

NOTE: If you publish a form with an embedded object in the body of the item, Outlook also stores the objects as hidden attachments. Therefore an unsaved item that is based on a custom form behaves the same way as a saved item that uses the default form.

MORE INFORMATION

This behavior occurs with items that have the body formatted as rich text. You may experience different behavior if you are using mail messages formatted in HTML or plain text formats, or if you are using Microsoft Word as the e-mail editor.

REFERENCES

For additional information about available resources and answersto commonly asked questions about Microsoft Outlook solutions, click the article number below to view the article in the Microsoft Knowledge Base:

146636 OL2000: Questions About Custom Forms and Outlook Solutions


Modification Type:MinorLast Reviewed:2/28/2004
Keywords:kbbug kbpending KB254010