![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: attachment, form, forward, region |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Ads |
|
#2
|
|||
|
|||
|
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Nikolas" wrote in message ... 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 |
|
#3
|
|||
|
|||
|
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. "Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Nikolas" wrote in message ... 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 |
|
#4
|
|||
|
|||
|
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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Nikolas" wrote in message ... 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. "Sue Mosher [MVP-Outlook]" wrote: The event you'd need to use would be MailItem.Forward. I don't see this as related to the form region. "Nikolas" wrote in message ... 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 |
|
#5
|
|||
|
|||
|
Yes you are right, apologies for not noticing that.
Thanks "Sue Mosher [MVP-Outlook]" wrote: 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 http://www.turtleflock.com/olconfig/index.htm and Microsoft Outlook Programming - Jumpstart for Administrators, Power Users, and Developers http://www.outlookcode.com/jumpstart.aspx "Nikolas" wrote in message ... 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. "Sue Mosher [MVP-Outlook]" wrote: The event you'd need to use would be MailItem.Forward. I don't see this as related to the form region. "Nikolas" wrote in message ... 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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Outlook 2003 Auto Forward Rules do not forward Attachment Correctly | Tom Ewald | Outlook - General Queries | 0 | March 8th 07 06:04 PM |
| forward as attachment | forward as attachment | Outlook Express | 3 | January 13th 07 09:44 PM |
| forward a mail item with form region | Nikolas | Outlook - Using Forms | 7 | December 1st 06 07:34 PM |
| only one instance of form region is displayed | Nikolas | Outlook - Using Forms | 4 | October 6th 06 04:37 PM |
| OL 2007 - Set custom form region as default | Fidget Brain | Outlook - Using Forms | 8 | July 6th 06 04:36 PM |