forward an attachment with form region

N

Nikolas

Hi,

Created an Outlook 2007 Addin using VSTO and form regions. When forwarding a
mail item that has been opened with one of our form region that has an
attachment we want to catch the forward even just before the new mail item
has been created. We basically want to alter the attachment when the user
presses the forward button on the ribbon and then forward the mail item.

Is there a "before forward" event on the mail item or even on the form region?

Thanks in advance
 
S

Sue Mosher [MVP-Outlook]

The event you'd need to use would be MailItem.Forward. I don't see this as related to the form region.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
N

Nikolas

Thanks for your reply.

Unfortunately, the MailItem.Forward event is being raised after the new mail
item has already been created. Thats why I said a "BeforeForward" event would
be more appropriate for me since I want to alter the attachment BEFORE it is
attached to the new mail item. In the MailItem.Forward event I don't have
information on the mail item that the forward button was pressed.
 
S

Sue Mosher [MVP-Outlook]

You should have that information, from the MailItem object whose Forward event you're handling.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top