TeDeSm
asked on
VS 2012 Office Interop Problem
I have upgraded from VS2010 to VS2012. To do this I had to uninstall VS2010.
On loading existing projects that had Imports Word = Microsoft.Office.Interop.W ord I find now that all references to Word such as Dim oWord As Word.Application show as errors.
Microsoft.Office.Interop.W ord in the references shows with a question mark. I am guessing that my projects with Excel will also be the same.
How do I correct this please.
On loading existing projects that had Imports Word = Microsoft.Office.Interop.W
Microsoft.Office.Interop.W
How do I correct this please.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Not a problem, glad I was able to help.
ASKER
This is what I did:
Ensured the Office PIA's were installed.
Removed the Reference to Microsoft.Office.Core
Added the reference to the Microsoft Word 14.0 Object Library
This referenced the Microsoft.Office.Core and Microsoft.Office.Interop.W
Errors now zero thank you.