473,406 Members | 2,816 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,406 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 1611
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.