473,320 Members | 1,957 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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
Dec 24 '08 #1
1 1608
Stang02GT
1,208 Expert 1GB
Moved to the Misc Forum.
Dec 24 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: PIII450 | last post by:
Hi all, Does anyone know of a class which will read outlook email messages. I need to be able to scan outlook for "non-read" e-mails with a specific subject and then save the attachments and...
3
by: AspDotNetDeveloper | last post by:
I'm trying to troubleshoot why my ASP application can no longer send file attachments larger than 100K, and I have eliminated many possibilities already, but I'm running out of ideas. I think I...
0
by: David Culliton | last post by:
Trying to write an application which will allow me to drag/drop multiple attachments from outlook into an application. I can obtain the list of attachment names, Count of attachments, and the...
2
by: Arno R | last post by:
Hi all, I know it is possible to send email with Access, but can one also automate the attachments? Question has been asked a lot I know... I've searched Google but *all* answers that work use...
12
by: Arno R | last post by:
Hi all, This is a repost of a message posted at october 6. The answer I got was about MapiMessages.AttachmentIndex. I think I need the MSMAPI32.OCX to use this. (I don't have this file on my PC)...
0
by: thisisuniqueuserid | last post by:
I have following code that throwing error :- 'Outlook.Attachments' does not contain a definition for 'Items'. I am using asp.net 1.1 public class CMail { private Outlook.PostItem...
6
by: Tim Marshall | last post by:
I am having one HELL of a time with sending pdfs that I generate. Outlook is not my preferred mail client but I have the wrethced thing installed so that I can use some late binding technique I...
2
by: dlesandrini | last post by:
Now that I have my rant about Google Search out of the way, I can ask my question. Someone must have noticed this, but since I can't Google the Access groups about it, I'll have to just ask: ...
1
by: rmarek | last post by:
I need to create an Outlook email from within Access that adds all the contents of a specific file folder as attachments. I have been able to get the email created and drop it into the Outlook...
1
by: napstar | last post by:
When I try to add attachments using this method: public void sendMail_VendorsWithEmail(string TO,string SUBJECT,string ATTACHMENTS) { /*this method creates an outlook email...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.