View Single Post
  #4  
Old August 2nd 08, 04:37 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default Enable Outlook Add-in when Word Editor is enabled in Outlook 2

No, both addins are completely separate.

Any email related functionality should be implemented in the Outlook addin,
Word document functionality in the Word addin. When in the Outlook addin
handle Word.WindowActivate() to see which UI to enable/disable by checking
for Window.Envelope.visible == true (email item). Use that to enable/disable
your Outlook created UI. Use the same event in Word to enable/disable any
Word created UI.

That way both are independent and don't conflict with each other.

--
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" wrote in message
...
Hi,

What I understand is that when the Envelope is visible, then I should
implement in my word-add the functionalities that are performed in my
outlook
add-in...
If yes, then how can I access field such as Subject, To, CC in the
envelope?

How to get the MailItem while I am in the word editor? how cas I save the
current document as an email (.msg)?

Thank you for you help?


Ads