Adding reference to Office library failing: type or namespace name Word not found

Posted by Dave on Stack Overflow See other posts from Stack Overflow or by Dave
Published on 2010-05-31T15:39:53Z Indexed on 2010/05/31 15:52 UTC
Read the original article Hit count: 285

Filed under:
|
|
|

I'm trying to use the sample code here:

I went to "Add Reference" dialog and added "Microsoft Word 12 library", but it doesn't appear in the Solution Explorer. I also added: using Microsoft.Office;

I get the following error message when trying to declare a "Word" object.

Error 1: The type or namespace name 'Word' could not be found (are you missing a using directive or an assembly reference?)

Any suggestions on how to properly reference the Word library?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET