Connecting Tech Pros Worldwide Help | Site Map

modifying MeetingItem attachments in an Outlook Add-in

 
LinkBack Thread Tools Search this Thread
  #1  
Old December 24th, 2008, 03:07 PM
Newbie
 
Join Date: Dec 2008
Posts: 1
Default modifying MeetingItem attachments in an Outlook Add-in

Hello,

I'm developing an Outlook Add-in and I'm trying to modify the attachments of an Outlook item before it's being sent. I'm able to successfully do it with a MailItem, but I wasn’t able to do it with a MeetingItem.

Consider the following simple examples:

/* removing the first attachment from MailItem - works just fine */
void OutlookApplication_ItemSend(object Item, ref bool Cancel)
{
Outlook.MailItem OutlookMailItem = Item as Outlook.MailItem;
OutlookMailItem.Attachments.Remove(1);
}

/* removing the first attachment from MeetingItem - doesn’t work, although the Count property of Attachments is decreased by 1, the attachment still stays on */
void OutlookApplication_ItemSend(object Item, ref bool Cancel)
{
Outlook.MeetingItem OutlookMeetingItem = Item as Outlook.MeetingItem;
OutlookMeetingItem.Attachments.Remove(1);
}

I'll appreciate any help with doing this.

Thanks,
George Sonq
Reply
  #2  
Old December 24th, 2008, 03:10 PM
Stang02GT's Avatar
Moderator
 
Join Date: Jun 2007
Location: USA
Age: 24
Posts: 1,152
Default

Moved to the Misc Forum.
Reply
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.