Inline.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm
"Hichem Sarrai" <(E-Mail Removed)> wrote in message
news:87F10F1C-93BE-4602-A4A2-(E-Mail Removed)...
>I am confused!!
> My comments are included in yours!
>
>> If Window.Envelope.Visible = true then it is an email item. There's very
>> little information you can get from that using the Word object model in a
>> Word addin. If it's an email item use Outlook code to deal with it in the
>> Outlook addin.
> *The problem is that case (in the case of a Word Editor in Outlook) the
> outlook add-in is not loaded? (that was my first question in this thread
> and
> you said that both addins are completely independents)
They are independent. One runs in Word and the other runs in Outlook. In the
case of WordMail 2003 or earlier both would be active since Word is invoked
and the item is an Outlook mail item.
> * When you say email item do you see it as _MailItem object?
Yes, in Outlook I see a mail item in the Inspector I'm handling. There is no
MailItem in Word and I don't use Word to deal with the item.
>
>>
>> Whether or not you disable your Word addin and any UI it might create
>> when
>> the item is a WordMail item is up to you. Do you want your addin running
>> and
>> its UI showing in that case? If so then don't disable your Word addin and
>> its UI. If you don't want it there in a WordMail item then disable its
>> UI. I
>> can't know what you want.
> What I do in Outlook : When I click on a button X and an email item is
> selected, then some code runs. The final result of this is a ".msg file"
> that
> have all the information concerning the email (Subject, To, CC,
> Attachement....)
> I want to do the same when I have a word editor (envelope is visible) ???
So do the same thing when you have a WordMail item, deal with it in Outlook
code.
You had originally asked about not showing the incorrect UI or multiple
copies of the UI and I answered that.
>
> Thank you for ur help