Word COMaddin toolbar is not visible if Word is launched by Automa

D

David

Hi,
We have developed COM addin (C++/ATL) for Word. It has custom toolbar with
buttons. Toolbar is always displayed (visible=true). However if Word documnet
is launched by other application using Automation ( new instance of Word
Application is created) my addin toolbar is not visible but dll is loaded by
Word. In case of Office 2003 I can right-click on toolbars and make my addin
visible by checking on checkbox. In Word 2007 I even cant find where to make
my addin visible , still dll is loaded and appears in Com-addins Window.
Any ideas?
Thanks in advance, David
 
C

Cindy M.

Hi David,
We have developed COM addin (C++/ATL) for Word. It has custom toolbar with
buttons. Toolbar is always displayed (visible=true). However if Word documnet
is launched by other application using Automation ( new instance of Word
Application is created) my addin toolbar is not visible but dll is loaded by
Word. In case of Office 2003 I can right-click on toolbars and make my addin
visible by checking on checkbox. In Word 2007 I even cant find where to make
my addin visible , still dll is loaded and appears in Com-addins Window.
Possibly, the other application is suppressing the display of toolbars? I guess
I'd try trapping some events and sending the .Visible = true on those events.
That will tell you whether it *can* display. Most promising, I think, would be
the NewDocument event.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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