Solved

VS 2012 Office Interop Problem

Posted on 2014-01-28
3
416 Views
Last Modified: 2014-01-28
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.Word I find now that all references to Word such as Dim oWord As Word.Application show as errors.

Microsoft.Office.Interop.Word 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.
0
Comment
Question by:TeDeSm
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 63

Accepted Solution

by:
Fernando Soto earned 500 total points
ID: 39815006
You will need to remove those references from the project and then re-add them back in.

To your question, "I am guessing that my projects with Excel will also be the same.", Yes, do the above to correct.
0
 

Author Closing Comment

by:TeDeSm
ID: 39815028
Thanks for the info.

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.Word

Errors now zero thank you.
0
 
LVL 63

Expert Comment

by:Fernando Soto
ID: 39815033
Not a problem, glad I was able to help.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question