PRB: DoVerb Is Not Invoked When User Forwards Multiple MAPI Forms (299010)



The information in this article applies to:

  • Microsoft Extended Messaging Application Programming Interface (MAPI)
  • Microsoft Outlook 2000
  • Microsoft Outlook 2002

This article was previously published under Q299010

SYMPTOMS

When a user selects multiple MAPI form messages to forward them, the DoVerb function is not invoked on these messages. Instead, Outlook creates a new message and adds all of the selected messages to the new message as attachments.

CAUSE

By design, when multiple messages are selected and forwarded, Outlook does not actually forward each message individually. Instead, Outlook creates a new message and attaches the selected messages. Therefore, because the messages are not actually forwarded, the Forward verb is not needed, and DoVerb is not invoked.

In addition, notice that when multiple messages are selected, the Reply and Reply All buttons are disabled. Therefore, DoVerb cannot be invoked for these verbs as well.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Create a MAPI form server. For sample MAPI form server source code, click the article number below to view the article in the Microsoft Knowledge Base:

    246524 SAMPLE: FormServer Implements a C++ MAPI Form with IDispatch

  2. Follow these steps to install the MAPI form in Outlook:
    1. In Outlook, on the Tools menu, click Options.
    2. In the Options dialog box, on the Other tab, click Advanced Options.
    3. Click Custom Forms, click Manage Forms, and then click Install.
    4. Browse to the .cfg file in the build directory of the sample, and then open the .cfg file.
  3. In your inbox, create a few messages that use this MAPI form.
  4. Select more than one of these messages in Outlook.
  5. On the Outlook toolbar, click Forward. Although the sample is written to display a dialog box when DoVerb is invoked, no dialog box appears.

Modification Type:MinorLast Reviewed:8/25/2005
Keywords:kbMsg kbprb KB299010