Word 2003 addin loads in Outlook 2003

Add-in Express™ Support Service
That's what is more important than anything else

Word 2003 addin loads in Outlook 2003
Word 2003 addin loads in Outlook 2003 
Benoit Gauthier


Guest


Hello,

I have a word addin that loads in Outlook 2003 when the user uses Word as their mail editor. I do not want this addin to load in Outlook.

I found this post on your site: http://www.add-in-express.com/forum/read.php?FID=1&TID=363&MID=1877#message1877

Unfortunatly the "Envelope" command bar is loaded in Word and in Outlook.

Is there any way to get if we are currently loaded/running in Outlook?

Thank you
Posted 18 Apr, 2011 11:10:40 Top
Benoit Gauthier


Guest


I've also tried to use the WordApp.Container property as discused in http://www.add-in-express.com/forum/read.php?FID=1&TID=6083

This produces an error that says : "Cette propri?t? n'est disponible que si le document est un objet OLE."

Translation : "This property is only available if the document is an OLE object."
Posted 18 Apr, 2011 11:37:47 Top
Benoit Gauthier


Guest


Think a found the solution, used the Document.Kind property to check if the document is an email message.

http://social.msdn.microsoft.com/Forums/en/vsto/thread/381c1007-bf7d-4fd9-9678-c06e394d7a5f
Posted 18 Apr, 2011 11:56:54 Top
Dmitry Kostochko


Add-in Express team


Posts: 2875
Joined: 2004-04-05
Hi Benoit,

Thank you for sharing the solution.

As to the Envelope command bar, you can check its Visible property, it will be True when Word 2003 is used as the default email editor in Outlook 2003.
Posted 19 Apr, 2011 05:10:47 Top