View Single Post
  #2  
Old April 21st 06, 07:46 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default Adding attachment to message

Application.ActiveInspector.CurrentItem.Attachment s.Add(...)

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"David Wendt" wrote in message
...
I've seen examples of Add-in code which can create a new mail message and
add an attachment to it.

Is there a way to add an attachment to an email the user is currently
composing?

From the email editor (i.e. Word running from Outlook), I want to provide
a button which shows a dialog. When the user picks an item from the dialog
I want to create a local file and add that file as an attachment to the
email message the user is currently editing.

I'm familiar with writing Add-ins for Word and Outlook. I've been through
the forums and MSDN but cannot figure out how to do this.

--------------
David Wendt



Ads