COM AddIn in Word

Heike

Well-known member
Joined
Jun 5, 2002
Messages
56
I have developed a COM AddIn. Now I want it to be saved in a different template, not in the normal.dot because even if I only start word and close it without doing anything, my normal.dot will be saved.

Any idea how to to it?
 
Q: Using Office Component for Addins in .Net

I develop an Addins Project for Excel in Visual Studio.NET that I need it to work for any machine in any Microsoft Office XP.
I use the dependecy (reference) Interop.Microsoft.Office.Core(Microsoft Office 10 Component) for my project.
But it seem that its not work fine in others computers (differenct than the one I develop the project, where the addins work fine)
the Dot NET raise errors:
+ "The Dependecy Interop.Microsoft.Office.Core could not be found."
+ "The referenced component Microsoft.Office.Core could not by found. A wrapper assembly is not registered for this type library."
Q: How can I solve the errors above for others computers so the addins work for other computer?

When I start to create the Addins project the Dot NET use the reference office.dll(under .NET references).
I remove this reference because I needed the first reference(in order to use the office menus), and because those two reference cant work together(they have the same name).
Q: What is this reference? Can I use it to solve my problem? How?

How did you make sure that you wont have problem using the application in other computer (using this component)?

How did you make sure that the addins work for other computer?
 
Im not sure if I can really help you, but Ill try...

First here is an extract from my references:
Office - Path = C:\WINNT\Microsoft.NET\Framework\v1.1.4322\Office.dll
Office1 - Path = D:\VisualBasic\BOSS_IBS_Addin\obj\Interop.Office.dll
Word - Path = D:\VisualBasic\BOSS_IBS_Addin\obj\Interop.Word.dll

How did you "put" it on the other computer (the one where your addin doesnt work)?

I do it by installing it. You can see the dependencies within my setup in the gif which I will attach.

Hope that helps?!
 

Attachments

  • setup.gif
    setup.gif
    28.8 KB · Views: 31
RE

I remove all the references to the Microsoft Office Component and add the .Net office.dll as your screen shot. but now I have this to errors (see screen shot). can you help me please?

error :
+ Public Overridable ReadOnly Default Property Item(Index As Object) As Microsoft.Office.Core.CommandBar is declared in project Office.dll, which is not referenced by project MersAddIns.dll.

although I added the office.dll reference.

(ExcelApp is Excel Application Object)

I put screen shot of the project references also.
 

Attachments

Unfortunately I have no real idea...

Maybe its because you only reference to the office.dll and not to the interop.office.dll?!

Why do you generate a dll? My AddIn is a exe?!

Sorry....
 
RE

Is not the reference office.dll the same as interop.office.dll?
how can I reference the interop.office.dll ?

the addins is dll.

TX anyway
ns2k
 
I think the interop.office.dll came automatically when I added the reference to word.
 
Back
Top