Word 2003 and 2007 COM problem
Posted on 2009-05-10
I'm writing a VB.Net app which will populate an Word Document. The app references Word using COM.
I have Office 2003 and 2007 on my machine, but the machine which will be running the application will have Office 2003. Therefore, when I added the Word COM reference, I chose the Word 11 one.
Now that I'm trying the application on another machine I'm getting errors saying that the Microsoft.Office.Interop.Word version 126.96.36.199 is missing. Viewing the object browser I see that Microsoft.Office.Interop.Word is described as:
This is strange condisering in the Solution Explorer view, I see the properties for the Word Reference set to:
Microsoft Excel 11.0 Object Library
It's saying it's Word 11, but then references the Word 12 interop libraries. I've removed the reference and added it again and it's still the same.
Any suggestions as to how I fix this? I need to keep Office 2003 and 2007 on this machine, but need to be able to build for Word 2003.