A
Andy Stevens
Hi,
I've developed an add-in for Word using the Visual Studio Shared add-in
wizard.
I've been through the following process:-
.. Created initial add-in using Word 2003 (redist) PIAs.
.. Decided to create a version for Office XP
.. Installed Office XP (Alongside 2003)
.. Downloaded Office XP (redist) PIAs
.. Started a simple add-in from scratch using XP PIAs which places a Button
on the standard commandbar
.. Created Setup project
.. Added Word.dll to GAC on target
.. Added registry entries (for PIAs)
.. Excluded Office.dll / stdole.dll (As intructed in Microsoft Docs)
(Have followed all of the documentation I could find on deploying add-ins
with XP PIAs)
Dependencies in setup project are as follows:-
###########################################################
Exensibilty.dll
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\PublicAssemblies\Extensibility.dll
Microsoft.Office.Interop.Word (Deploying to GAC)
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\10.0.4504.0__31bf3856ad364e35\Microsoft.Office.Interop.Word.dll
Microsoft.Vbe.Interop.dll
C:\WINDOWS\assembly\GAC\Microsoft.Vbe.Interop\10.0.4504.0__31bf3856ad364e35\Microsoft.Vbe.Interop.dll
Office.dll
C:\WINDOWS\assembly\GAC\Office\7.0.3300.0__b03f5f7f11d50a3a\Office.dll
stdole.dll
C:\WINDOWS\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll
#############################################################
Installed add-in on a second machine.
The add-in will only work if I declare the main application Object as type
Object and doesn't start at all if I declare it as Word.Application, event
though I'm Casting the type at startup ie..
Dim applicationObject as Object
... in OnConnection ..
applicationObject = CType(application, Word.Application)
Which doesn't complain at all.
It will also only work if I include the Office.dll (I was instructed to
exclude)
The add-in works fine on the development machine.
Has anyone had similar issues or can anyone provide insight, or perhaps
highlight my stupidity?
Any help would be greatly appreciated.
Regards,
Andy
I've developed an add-in for Word using the Visual Studio Shared add-in
wizard.
I've been through the following process:-
.. Created initial add-in using Word 2003 (redist) PIAs.
.. Decided to create a version for Office XP
.. Installed Office XP (Alongside 2003)
.. Downloaded Office XP (redist) PIAs
.. Started a simple add-in from scratch using XP PIAs which places a Button
on the standard commandbar
.. Created Setup project
.. Added Word.dll to GAC on target
.. Added registry entries (for PIAs)
.. Excluded Office.dll / stdole.dll (As intructed in Microsoft Docs)
(Have followed all of the documentation I could find on deploying add-ins
with XP PIAs)
Dependencies in setup project are as follows:-
###########################################################
Exensibilty.dll
C:\Program Files\Microsoft Visual Studio .NET
2003\Common7\IDE\PublicAssemblies\Extensibility.dll
Microsoft.Office.Interop.Word (Deploying to GAC)
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\10.0.4504.0__31bf3856ad364e35\Microsoft.Office.Interop.Word.dll
Microsoft.Vbe.Interop.dll
C:\WINDOWS\assembly\GAC\Microsoft.Vbe.Interop\10.0.4504.0__31bf3856ad364e35\Microsoft.Vbe.Interop.dll
Office.dll
C:\WINDOWS\assembly\GAC\Office\7.0.3300.0__b03f5f7f11d50a3a\Office.dll
stdole.dll
C:\WINDOWS\assembly\GAC\stdole\7.0.3300.0__b03f5f7f11d50a3a\stdole.dll
#############################################################
Installed add-in on a second machine.
The add-in will only work if I declare the main application Object as type
Object and doesn't start at all if I declare it as Word.Application, event
though I'm Casting the type at startup ie..
Dim applicationObject as Object
... in OnConnection ..
applicationObject = CType(application, Word.Application)
Which doesn't complain at all.
It will also only work if I include the Office.dll (I was instructed to
exclude)
The add-in works fine on the development machine.
Has anyone had similar issues or can anyone provide insight, or perhaps
highlight my stupidity?
Any help would be greatly appreciated.
Regards,
Andy