K
KarthikRamz
Hi,
We are developing a Office Word Addin which is being developed to work
with Office 2003,Office 12,Xp and 2000.
This addin was developed with the Shared Add-in project in VS 2003 using the
Office 11 PIA as a referece.
This addin fails to load in a few machines, which have office 2003
installed. We have not tested the same on other versions of office though.
A sample of the OnConnection method forour code is as follows:
public void OnConnection(object application, Extensibility.ext_ConnectMode
connectMode, object addInInst, ref System.Array custom)
{
applicationObject = application;
addInInstance = addInInst;
System.Windows.Forms.MessageBox.Show(connectMode.ToString());
if (connectMode != Extensibility.ext_ConnectMode.ext_cm_Startup)
{
System.Windows.Forms.MessageBox.Show("Inside OnConnection-if condition");
OnStartupComplete(ref custom);
}
}
Please let me know if I am doing anything wrong as I see that the message
box would not show up for the Inside OnConnection-If Condition.
This is because the connectMode is my case is ext_c_Startup, there is a
message box which I placed to show the same.
Also I am calling the OnStartUpComplete() method inside the OnConnection
method which does the actual task of placing a button on the Standard toolbar.
Also I have checked that the LoadBehavior for the Addin is set to 3 in the
registry
I have built on my code from the example provided in the msdn link:
http://support.microsoft.com/?scid=kb;en-us;302901&spid=2530&sid=63
Thanks!
Karthik
We are developing a Office Word Addin which is being developed to work
with Office 2003,Office 12,Xp and 2000.
This addin was developed with the Shared Add-in project in VS 2003 using the
Office 11 PIA as a referece.
This addin fails to load in a few machines, which have office 2003
installed. We have not tested the same on other versions of office though.
A sample of the OnConnection method forour code is as follows:
public void OnConnection(object application, Extensibility.ext_ConnectMode
connectMode, object addInInst, ref System.Array custom)
{
applicationObject = application;
addInInstance = addInInst;
System.Windows.Forms.MessageBox.Show(connectMode.ToString());
if (connectMode != Extensibility.ext_ConnectMode.ext_cm_Startup)
{
System.Windows.Forms.MessageBox.Show("Inside OnConnection-if condition");
OnStartupComplete(ref custom);
}
}
Please let me know if I am doing anything wrong as I see that the message
box would not show up for the Inside OnConnection-If Condition.
This is because the connectMode is my case is ext_c_Startup, there is a
message box which I placed to show the same.
Also I am calling the OnStartUpComplete() method inside the OnConnection
method which does the actual task of placing a button on the Standard toolbar.
Also I have checked that the LoadBehavior for the Addin is set to 3 in the
registry
I have built on my code from the example provided in the msdn link:
http://support.microsoft.com/?scid=kb;en-us;302901&spid=2530&sid=63
Thanks!
Karthik