rufustmac
asked on
Office Interop assembly question
I am attempting to add a reference to Microsoft.Office.Interop.O utlook to my VS2005 project and it’s giving me fits. I attempted to add a reference and then chose COM, selected Microsoft.Office.Core and it added it but did not add Microsoft.Office.Interop.O utlook. I then installed the Office 2007 Primary Interop Assemblies redistributable and tried it again but that did no good either. Do I need to do anything in addition to what I have already done in order to add it to my project?
ASKER
I had been through some of those links myself and they weren't much help unfortunately. One thing I did want to mention is that I am using Windows 7. I looked back at an older project I did when I had XP and I noticed that I successfully imported the Microsoft.Office.Interop.O utlook assembly into my project. So, I'm not sure if this a Windows 7 thing or I'm doing something wrong the 2nd time around.
The redristro is for XP SP2 - I am not sure if it will run on Windows 7.
There's a case here on EE, this guy got it to work using this method.
https://www.experts-exchange.com/questions/24873386/PIA-wont-install-for-office-2007-outlook-business-contact-manager.html
You want to give that a shot ?
There's a case here on EE, this guy got it to work using this method.
https://www.experts-exchange.com/questions/24873386/PIA-wont-install-for-office-2007-outlook-business-contact-manager.html
You want to give that a shot ?
ASKER
o2007pia.msi is the package I downloaded and installed without error but I still don't see the .dll's that I am looking for.
ASKER
I just found that if I look in the GAC, I do see the Microsoft.Office.Interop.O utlook and all of it's associated friends but I am unable to reference them in my project.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Reinstalling Office did the trick
http://blogs.msdn.com/b/vsto/archive/2008/05/08/adding-the-office-primary-interop-assemblies-as-a-prerequisite-in-your-clickonce-installer-mary-lee.aspx
http://msdn.microsoft.com/en-us/library/15s06t57(VS.80).aspx
http://msdn.microsoft.com/en-us/library/7314433t(VS.80).aspx
http://msdn.microsoft.com/en-us/library/15s06t57(VS.80).aspx
http://msdn.microsoft.com/en-us/library/dww0e04a(VS.80).aspx
hope this helps.