> Hi David, if your add-in is part of Outlook you will have access to the
> Outlook Application object from the Connect class (if using .net).
> You would just need to add a button to the new mail item inspector.
> Thew button could open the form as you mentioned and once the user selects
> the file, use the code Dmitry suggested in order to add the attachment.
> Rog
>
> David Wendt wrote:
>> OK, I see that but Word is my email editor so the Add-in button there
>> would not have access to the Outlook Application object (right?). Can I
>> add a button to the toolbar area of Word that Outlook occupies--the area
>> with the addresses, subject, and attachment controls?
>>
>> -------------
>> David Wendt
>>
>> "Dmitry Streblechenko" <dmitry[ at ]dimastr.com> wrote in message
>> news:ODGc6sWZGHA.4884[ at ]TK2MSFTNGP02.phx.gbl...
>>> Application.ActiveInspector.CurrentItem.Attachments.Add(...)
>>>
>>> Dmitry Streblechenko (MVP)
>>>
http://www.dimastr.com/>>> OutlookSpy - Outlook, CDO
>>> and MAPI Developer Tool
>>>
>>> "David Wendt" <someone[ at ]microsoft.com> wrote in message
>>> news:uijOWbWZGHA.2376[ at ]TK2MSFTNGP03.phx.gbl...
>>>> 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
>>>>
>>>
>>