Disable a Word com addin when Word as WordMailEditor

F

Frenchy

Hello,

I developped a COM add-in (Extenssibility project C# VS 2003)

I'd like this add-in to work only with Word, not with Outlook.

I succeed disabling it when I launch Outlook, then creating a new mail.
My add-in is a CommandBar, which I add on the Application_DocumentChange()
event.

So to disable it with outlook, I check this;

if(appWord.ActiveWindow.EnvelopeVisible == false)
{
//Word and NOT Word Mail Editor
}

OK it works fine, but there's a problem, when the user use word, then click
on the envelope icon, my add-in is still there...but I don't want to :(
I'd like to disable the CommandBar if the user click that envelop icon, but
there's no event...

Any idea?

Thanks,

Frenchy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top