Problem with Inspector CommandBars and MS Word

Joined
Jul 10, 2006
Messages
1
Reaction score
0
Hello all,

I have a next problem:

My Add-in adds a custom CommandBar with button into MailItem Inspector's CommandBars object via NewInspector event. The MS Word editor is switched on. It works properly.

But... If MS Word application was run before the MailItem Inspector was opened (for example New Mail Message action), the Inspector's CommandBars refers on MS Word application commandBar object !!!, therefor my custom commandBar appears in MS Word application and action received from my custom button from MS Word, not from Outlook MailItem Inspector.
What is wrong? How can I obtain Outlook Inspector CommandBar?

Regards,
Yuri
 
Back
Top