B
Bernd
Hi,
I' ve developed a COM addin for Word using VB.NET. Now, I want to access
it from 'outside' (by a Word macro, for instance).
To make my addin accessible, the AddInInst parameter of the OnConnection
sub is assigned a reference to the addin:
------------------------------------------------------------------
Public Sub OnConnection(_
ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, _
ByRef custom As System.Array) _
Implements AddInDesignerObjects.IDTExtensibility2.OnConnection
....
AddInInst.Object = Me
....
end sub
------------------------------------------------------------------
My Word macro for accessing the COM addin looks like:
------------------------------------------------------------------
Dim MyAddin As COMAddIn
Set MyAddin = Application.COMAddIns("MyAddin.Connect")
------------------------------------------------------------------
But the property 'MyAddin.Object' turns out to be nothing!
Any idea why?
Thanks a lot in advance for your answers.
Bernd
I' ve developed a COM addin for Word using VB.NET. Now, I want to access
it from 'outside' (by a Word macro, for instance).
To make my addin accessible, the AddInInst parameter of the OnConnection
sub is assigned a reference to the addin:
------------------------------------------------------------------
Public Sub OnConnection(_
ByVal Application As Object, _
ByVal ConnectMode As AddInDesignerObjects.ext_ConnectMode, _
ByVal AddInInst As Object, _
ByRef custom As System.Array) _
Implements AddInDesignerObjects.IDTExtensibility2.OnConnection
....
AddInInst.Object = Me
....
end sub
------------------------------------------------------------------
My Word macro for accessing the COM addin looks like:
------------------------------------------------------------------
Dim MyAddin As COMAddIn
Set MyAddin = Application.COMAddIns("MyAddin.Connect")
------------------------------------------------------------------
But the property 'MyAddin.Object' turns out to be nothing!
Any idea why?
Thanks a lot in advance for your answers.
Bernd