blue piranha
blue piranha

Reputation: 3876

microsoft.office.interop.word not showing up in add references

I am working on a C# project which requires reading of a word file. I have microsoft.office.interop.word in my machine's Global Assembly Cache but still it would NOT show up in Visual Studio's Project reference list. Any thoughts?

enter image description here

Upvotes: 0

Views: 686

Answers (1)

Eric Johnson
Eric Johnson

Reputation: 191

There is a browse button in the Add References dialog that lets select an arbitrary .NET dll to add as a reference. Since you have already found the dll in the GAC, you can just copy the path into that dialog and add from there.

While it has been a while since I have worked with the interop with Office via a .NET program, there is also the COM tab in the dialog and I believe that should have a reference to Word. That may be the one that you are supposed to use.

Upvotes: 1

Related Questions