C# AddIn shows up for Excel - not for Word or Powerpoint (Office 2

P

Paresh

I created an AddIn project in VS.NET 2003 to insert a custom menu item into
Excel, Word and Powerpoint (part of OfficeXP). I debugging the AddIn to get
it working via Reflection for all apps. I upgraded same machine to Office
2003, and AddIn works fine for all apps.

I created an .msi installer and run it on another machine that has Office
2003, and AddIn only shows up for Excel. I checked registry entries under
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\XXX\Addins\" and see the ProgID
for my AddIn, where XXX is Powerpoint, Word and Excel.

Ran the .msi installer on another machine with Office 2003, and AddIn showed
up for Excel and Powerpoint, but not Word.

What's going on?
 
M

Martin Böhm

Hi,

What about the LoadBehaviour Value located underneath?

Is it set to 3, when you start the office applications, or is it set to 2?

Best Regards,
Martin Boehm

Interested in mailing me? Here's my email
(please read from right to left and use COM Addin as keyword in the subject
line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
 
P

Paresh

The LoadBehavior value is set to 3 for all Excel, Word and Powerpoint.
--
Paresh Suthar


Martin Böhm said:
Hi,

What about the LoadBehaviour Value located underneath?

Is it set to 3, when you start the office applications, or is it set to 2?

Best Regards,
Martin Boehm

Interested in mailing me? Here's my email
(please read from right to left and use COM Addin as keyword in the subject
line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
 
M

Martin Böhm

Hello again,

Do you have any other assemblies that are called from within the connect
class?

A problem occurred to me once while calling a function in another referenced
Assembly from the onStartupComplete method. An exception was thrown, but the
LoadBehaviour remained unchanged.

Usually the LoadBehaviour is then set to 2, but it was not modified in this
case.

I guess, the best thing is to add a TraceListener, and add some debug
statements.

Regards,
Martin

Paresh said:
The LoadBehavior value is set to 3 for all Excel, Word and Powerpoint.
--
Paresh Suthar


Martin Böhm said:
Hi,

What about the LoadBehaviour Value located underneath?

Is it set to 3, when you start the office applications, or is it set to
2?

Best Regards,
Martin Boehm

Interested in mailing me? Here's my email
(please read from right to left and use COM Addin as keyword in the
subject
line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
Paresh said:
BTW, explicitly running regasm /codebase does not fix the problem.
--
Paresh Suthar


:

I created an AddIn project in VS.NET 2003 to insert a custom menu item
into
Excel, Word and Powerpoint (part of OfficeXP). I debugging the AddIn
to
get
it working via Reflection for all apps. I upgraded same machine to
Office
2003, and AddIn works fine for all apps.

I created an .msi installer and run it on another machine that has
Office
2003, and AddIn only shows up for Excel. I checked registry entries
under
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\XXX\Addins\" and see the
ProgID
for my AddIn, where XXX is Powerpoint, Word and Excel.

Ran the .msi installer on another machine with Office 2003, and AddIn
showed
up for Excel and Powerpoint, but not Word.

What's going on?
 
P

Paresh

Yes, I have additional assemblies that are referenced, but the classes
contained within them are not called from the OnStartupComplete (directly or
indirectly).

I am still stumped as to why Excel would work fine, but not Word or
Powerpoint, given that the code execution path is near identical.
--
Paresh Suthar


Martin Böhm said:
Hello again,

Do you have any other assemblies that are called from within the connect
class?

A problem occurred to me once while calling a function in another referenced
Assembly from the onStartupComplete method. An exception was thrown, but the
LoadBehaviour remained unchanged.

Usually the LoadBehaviour is then set to 2, but it was not modified in this
case.

I guess, the best thing is to add a TraceListener, and add some debug
statements.

Regards,
Martin

Paresh said:
The LoadBehavior value is set to 3 for all Excel, Word and Powerpoint.
--
Paresh Suthar


Martin Böhm said:
Hi,

What about the LoadBehaviour Value located underneath?

Is it set to 3, when you start the office applications, or is it set to
2?

Best Regards,
Martin Boehm

Interested in mailing me? Here's my email
(please read from right to left and use COM Addin as keyword in the
subject
line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
BTW, explicitly running regasm /codebase does not fix the problem.
--
Paresh Suthar


:

I created an AddIn project in VS.NET 2003 to insert a custom menu item
into
Excel, Word and Powerpoint (part of OfficeXP). I debugging the AddIn
to
get
it working via Reflection for all apps. I upgraded same machine to
Office
2003, and AddIn works fine for all apps.

I created an .msi installer and run it on another machine that has
Office
2003, and AddIn only shows up for Excel. I checked registry entries
under
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\XXX\Addins\" and see the
ProgID
for my AddIn, where XXX is Powerpoint, Word and Excel.

Ran the .msi installer on another machine with Office 2003, and AddIn
showed
up for Excel and Powerpoint, but not Word.

What's going on?
 
M

Martin Böhm

hmm...

As long as we have no trace results we're in the dark.

Another thing that is also interesting is to find out on which machines the
addin is working. Does the problem occur on machines that have no
development environement installed? Does it work on developer machines
before it has been compiled for the first time?

This might seem a little bit strange to you, but there are some problems
when registering files for COM Interop. This has something to do with the
sequence functions and types are registered for COM interop. If you have
methods with parameters which use types that have been declared within your
assembly, com interop registration will fail on a non developer machine. On
a developer machine VS.Net is doing the COM interopregistration when the
solution is debugged.

Regards,
Martin

Maybe you have found yet another problem which we also experienced.
Paresh said:
Yes, I have additional assemblies that are referenced, but the classes
contained within them are not called from the OnStartupComplete (directly
or
indirectly).

I am still stumped as to why Excel would work fine, but not Word or
Powerpoint, given that the code execution path is near identical.
--
Paresh Suthar


Martin Böhm said:
Hello again,

Do you have any other assemblies that are called from within the connect
class?

A problem occurred to me once while calling a function in another
referenced
Assembly from the onStartupComplete method. An exception was thrown, but
the
LoadBehaviour remained unchanged.

Usually the LoadBehaviour is then set to 2, but it was not modified in
this
case.

I guess, the best thing is to add a TraceListener, and add some debug
statements.

Regards,
Martin

Paresh said:
The LoadBehavior value is set to 3 for all Excel, Word and Powerpoint.
--
Paresh Suthar


:

Hi,

What about the LoadBehaviour Value located underneath?

Is it set to 3, when you start the office applications, or is it set
to
2?

Best Regards,
Martin Boehm

Interested in mailing me? Here's my email
(please read from right to left and use COM Addin as keyword in the
subject
line so your email is not considered as spam)
ed[dot]socyl[at]nitram[hyphen]mheob
BTW, explicitly running regasm /codebase does not fix the problem.
--
Paresh Suthar


:

I created an AddIn project in VS.NET 2003 to insert a custom menu
item
into
Excel, Word and Powerpoint (part of OfficeXP). I debugging the
AddIn
to
get
it working via Reflection for all apps. I upgraded same machine to
Office
2003, and AddIn works fine for all apps.

I created an .msi installer and run it on another machine that has
Office
2003, and AddIn only shows up for Excel. I checked registry
entries
under
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\XXX\Addins\" and see
the
ProgID
for my AddIn, where XXX is Powerpoint, Word and Excel.

Ran the .msi installer on another machine with Office 2003, and
AddIn
showed
up for Excel and Powerpoint, but not Word.

What's going on?
 

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