Office Add-ins visible in Excel but not in Word.

M

MHab

I made a simple Add-ins with an empty toolbar and message when connecting for
testing purpose. I used VS 2005 Shared Add-in wizard. I didn't check the
option "all users" in the project creation wizard and I perquisite the update
KB908002. It has to work with Word, Excel, and PowerPoint. On the development
machine it is working for all the applications. On another machines only with
Excel. The security options are the same in Excel and Word. Medium level and
allow all Add-ins. I am working with Office 2003 on XP.
 
C

Cindy M.

Hi =?Utf-8?B?TUhhYg==?=,
I made a simple Add-ins with an empty toolbar and message when connecting for
testing purpose. I used VS 2005 Shared Add-in wizard. I didn't check the
option "all users" in the project creation wizard and I perquisite the update
KB908002. It has to work with Word, Excel, and PowerPoint. On the development
machine it is working for all the applications. On another machines only with
Excel. The security options are the same in Excel and Word. Medium level and
allow all Add-ins. I am working with Office 2003 on XP.
Have you checked the list of "Disabled items" in Word's Help/About dialog box?
Is your Add-in listed there? Is any other Add-in listed there?

If you don't create a SHIM for your Shared Add-in, then it runs in the same
domain with other Shared Add-ins. If one should fail, all in the same domain
will be disabled...

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 :)
 
M

MHab

Thanks for your help

There is no disabled items in my Word Help About (Disabled Items...).
 
C

Cindy M.

Hi =?Utf-8?B?TUhhYg==?=,
I made a simple Add-ins with an empty toolbar and message when connecting for
testing purpose. I used VS 2005 Shared Add-in wizard. I didn't check the
option "all users" in the project creation wizard and I perquisite the update
KB908002. It has to work with Word, Excel, and PowerPoint. On the development
machine it is working for all the applications. On another machines only with
Excel. The security options are the same in Excel and Word. Medium level and
allow all Add-ins. I am working with Office 2003 on XP.
OK, did you check the Registry keys under HKCU? Perhaps it wasn't correctly
registered for Word and PowerPoint, only for Excel?

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 :)
 
C

Cindy M.

Hi =?Utf-8?B?TUhhYg==?=,
There is exactly the same thing in the registry under Word and Excel.
Including the Load Behavior?

Does it appear in the COM Add-ins dialog box? Or can you add it through
that box? If not, does that at least give you some kind of error
information?

(If you don't see the COM Add-ins button in the Tools menu:
Tools/Customize/Commands, Category "Tools". Drag COM Add-ins from the
list on the right to the Tools menu.)

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 :)
 
M

MHab

Yes, the load is the same in the registry. I see the Add-ins in the COM
Add-ins list checked exactly as I see it in Excel. But when I uninstall the
Add-ins it is removed from Excel and not from Word. However, if I remove it
manually and reinstall, it reappears in Word as in Excel.
Thanks
 
C

Cindy M.

Hi =?Utf-8?B?TUhhYg==?=,
Yes, the load is the same in the registry. I see the Add-ins in the COM
Add-ins list checked exactly as I see it in Excel. But when I uninstall the
Add-ins it is removed from Excel and not from Word. However, if I remove it
manually and reinstall, it reappears in Word as in Excel.
Does this mean you've solved the problem?

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 :)
 
M

MHab

No,

I see the same thing in the registry and in the COM Add-ins. But the message
is displayed in Excel and not in Word, and the toolbar appears in Excel but
not in Word.

This is the code in wrote in OnConnection:

MessageBox.Show("SharedAddin");

CommandBar toolBar = null;
object missing = System.Reflection.Missing.Value;
// Create a command bar for the add-in
if (application is Microsoft.Office.Interop.Word.Application)
toolBar =
(CommandBar)((Microsoft.Office.Interop.Word.Application)applicationObject).CommandBars.Add("Shared Addin Test", MsoBarPosition.msoBarTop,
missing, true);
else if (application is
Microsoft.Office.Interop.Excel.Application)
toolBar =
(CommandBar)((Microsoft.Office.Interop.Excel.Application)applicationObject).CommandBars.Add("Shared Addin Test", MsoBarPosition.msoBarTop,
missing, true);

toolBar.Visible = true;

Thanks
 

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