Office addin DLL dependecy confusion, help!

K

Kevin

I am writing and addin for office with C#.net. I started the project with a share-addin, so the template automatically reference the office.dll to the project, but I need the Word object in the addin, then I added a word object library, now there are two office.dll in my project. one is from the Framework folder the other is from GAC. the addin works find in my development machines, but when I use the installer to install the addin on other machine, the addin won't work.

Q.1 is the two office.dll cause problem

Q.2. is there anyway to develop an addin that works in all version of office with .net? because the addin needs to reference the object library in order to interact with the app and there are difference versions of the libraries.

Q3. when deploying the addin, is the installer in the share-addin that created alone with the project good enough? when I use that installer to install the COM addin on the client machine, it won't work. whatelse can I do

th

kevi
 
T

Tom Winter

Kevin said:
I am writing and addin for office with C#.net. I started the project with
a share-addin, so the template automatically reference the office.dll to the
project, but I need the Word object in the addin, then I added a word object
library, now there are two office.dll in my project. one is from the
Framework folder the other is from GAC. the addin works find in my
development machines, but when I use the installer to install the addin on
other machine, the addin won't work.
Q.1 is the two office.dll cause problem?

Q.2. is there anyway to develop an addin that works in all version of
office with .net? because the addin needs to reference the object library in
order to interact with the app and there are difference versions of the
libraries.
Q3. when deploying the addin, is the installer in the share-addin that
created alone with the project good enough? when I use that installer to
install the COM addin on the client machine, it won't work. whatelse can I
do?
thx

kevin

You might get a quicker answer to your question in the newsgroup:
microsoft.public.vsnet.vstools.office

-Tom
 
K

Kevin

BTW, you know why this block of code doesn't work for C# but vb.net (i mean
it works in vb.net but after translating it to C#, it doesn't work)?

word.Assistant.Visible = true;

word.Assistant.On = true;

word.Assistant.NewBalloon.BalloonType =
Microsoft.Office.Core.MsoBalloonType.msoBalloonTypeButtons;

word.Assistant.NewBalloon.Heading = "Testing...";

word.Assistant.NewBalloon.Button =
Microsoft.Office.Core.MsoButtonSetType.msoButtonSetOkCancel;

word.Assistant.NewBalloon.Mode =
Microsoft.Office.Core.MsoModeType.msoModeAutoDown;

word.Assistant.NewBalloon.Icon =
Microsoft.Office.Core.MsoIconType.msoIconTip;

word.Assistant.NewBalloon.Text = defs;

word.Assistant.NewBalloon.Show();


thx

Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top