Microsoft KB Archive/299010

= PRB: DoVerb Is Not Invoked When User Forwards Multiple MAPI Forms =

Article ID: 299010

Article Last Modified on 8/25/2005

-

APPLIES TO


 * Microsoft Messaging Application Programming Interface
 * Microsoft Outlook 2000 Standard Edition
 * Microsoft Outlook 2002 Standard Edition

-



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.



Steps to Reproduce Behavior
 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

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

<div class="references_section">