Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

  • 3 weeks later...
Posted

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 can't 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 won't have problem using the application in other computer (using this component)?

 

How did you make sure that the addins work for other computer?

Posted

I'm not sure if I can really help you, but I'll 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 doesn't 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?!

Posted

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.

Posted

Unfortunately I have no real idea...

 

Maybe it's 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....

Posted

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

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...