A
Add COM Office Ref
Hi,
The problem is mentioned below..
I'm writing a C#.Net app (using VS 2005) which will populate an Word
Document. The app references Word using COM.
I have Office 2003 and 2007 on my machine and the application refers to both
version dlls (12 .0 and 11.0 of Microsoft.Office.Interop.Word) is built and
deployed. The server where application is deployed also contains both Office
2003 and 2007.
But while working with the application, always Word 2007 is considered.
In the Solution Explorer view, I see the properties for the Word Reference
set to:
Microsoft.Office.Interop.Word :
Description:Microsoft Excel 11.0 Object Library
Path:
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll
It's saying it's Word 11, but then references the Word 12 interop libraries,
above. I've removed the reference and added it again and it's still the same.
Any suggestions as to how I fix this? I want to refer to MS Office 11.0.0.0
for 2003 files and MS Office 12.0.0.0 for 2007 related files in the same
project.
Thanks.
The problem is mentioned below..
I'm writing a C#.Net app (using VS 2005) which will populate an Word
Document. The app references Word using COM.
I have Office 2003 and 2007 on my machine and the application refers to both
version dlls (12 .0 and 11.0 of Microsoft.Office.Interop.Word) is built and
deployed. The server where application is deployed also contains both Office
2003 and 2007.
But while working with the application, always Word 2007 is considered.
In the Solution Explorer view, I see the properties for the Word Reference
set to:
Microsoft.Office.Interop.Word :
Description:Microsoft Excel 11.0 Object Library
Path:
C:\WINDOWS\assembly\GAC\Microsoft.Office.Interop.Word\12.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll
It's saying it's Word 11, but then references the Word 12 interop libraries,
above. I've removed the reference and added it again and it's still the same.
Any suggestions as to how I fix this? I want to refer to MS Office 11.0.0.0
for 2003 files and MS Office 12.0.0.0 for 2007 related files in the same
project.
Thanks.