Adding reference to Office library failing: type or namespace name Word not found
- by Dave
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?