D
David Thielen
Hi;
First off this is a .NET/C#/IDTExtensibility2 application.
The following code works fine on two computers:
public void OnConnection(object application, ext_ConnectMode
connectMode, object addInInst, ref Array custom)
{
applicationObject = application;
}
public void OnStartupComplete(ref Array custom)
{
ApplicationClass app = applicationObject as ApplicationClass;
app.ApplicationEvents3_Event_DocumentOpen += new
ApplicationEvents3_DocumentOpenEventHandler(Event_DocumentOpen);
}
But on a third computer, while app comes back as a System.__ComObject,
the attempt to get the document open event throws a "Object reference
not set to an instance of an object" exception.
This third computer has Office 2003 installed on it. However, the
other 2 computers have VisualStudio installed and this one does not -
if that makes any difference.
Any ideas?
thanks - dave
First off this is a .NET/C#/IDTExtensibility2 application.
The following code works fine on two computers:
public void OnConnection(object application, ext_ConnectMode
connectMode, object addInInst, ref Array custom)
{
applicationObject = application;
}
public void OnStartupComplete(ref Array custom)
{
ApplicationClass app = applicationObject as ApplicationClass;
app.ApplicationEvents3_Event_DocumentOpen += new
ApplicationEvents3_DocumentOpenEventHandler(Event_DocumentOpen);
}
But on a third computer, while app comes back as a System.__ComObject,
the attempt to get the document open event throws a "Object reference
not set to an instance of an object" exception.
This third computer has Office 2003 installed on it. However, the
other 2 computers have VisualStudio installed and this one does not -
if that makes any difference.
Any ideas?
thanks - dave