Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

When I try to build my application using Studio 2010, I receive the above entitled error (Office is not a member of Microsoft). I have tried to add the reference to my project, but I cannot find it. This is a fresh install of Studio, and I have copied the source files from a server.

Thanks in advance for your help.
Posted
Comments
ZurdoDev 1-May-12 10:15am    
Office does not come with Visual Studio so you need to find the dlls.
jonsey29847 1-May-12 10:28am    
Can you point me to the default location? I found several dll files in the Debug folder?

1 solution

If you have Office installed, then go to your project and right click "References" in the Solution explorer.
Select "Add Reference..." and in the dialog that results, under "Assemblies" on the left hand side, select "Extensions"
The DLLs you are looking for will be under "Microsoft.Office.---"

If you do not have Office installed, then you need to install it before you can set the references.
 
Share this answer
 
Comments
jonsey29847 1-May-12 10:40am    
I have Office installed, but cannot find the dll using the method you describe. I have found the dll in the Debug directory, what gives with that?
Sergey Alexandrovich Kryukov 1-May-12 12:05pm    
Not exactly. The assemblies Microsoft.Interop.Office... are under ".NET" tab. They are a part of GAC.
--SA
OriginalGriff 1-May-12 12:23pm    
Um. THey are exactly where I described on my VS 2010 installation.
http://images.software-matters.com/genshare/references.jpg
Sergey Alexandrovich Kryukov 7-May-12 19:59pm    
What is it? It does not look like Visual Studio screen.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900