D
Douglas Abbink
Howdy,
I have a C# Addin. On 80% of computers, it works great. On the other 20%,
the Addin cannot get a hold of the command bars so I can add my button. I
have tried various ways to get a hold of the CommandBars and none have been
successful on a small set of machines. On example of how I have tried to
get a hold of the commandbars is below.
Is there possibly some setting in outlook or WinXP that might be preventing
me from getting the commandbars on these select machines?
code:
oActiveExplorer = applicationObject.GetType().InvokeMember("ActiveExplorer",
BindingFlags.GetProperty, null, applicationObject, null);
oCommandBars =
(Microsoft.Office.Core.CommandBars)oActiveExplorer.GetType().InvokeMember("CommandBars",
BindingFlags.GetProperty, null, oActiveExplorer, null);
I have a C# Addin. On 80% of computers, it works great. On the other 20%,
the Addin cannot get a hold of the command bars so I can add my button. I
have tried various ways to get a hold of the CommandBars and none have been
successful on a small set of machines. On example of how I have tried to
get a hold of the commandbars is below.
Is there possibly some setting in outlook or WinXP that might be preventing
me from getting the commandbars on these select machines?
code:
oActiveExplorer = applicationObject.GetType().InvokeMember("ActiveExplorer",
BindingFlags.GetProperty, null, applicationObject, null);
oCommandBars =
(Microsoft.Office.Core.CommandBars)oActiveExplorer.GetType().InvokeMember("CommandBars",
BindingFlags.GetProperty, null, oActiveExplorer, null);