-1

I need to programmatically access word and excel files in my dotNet 4.5 Code. I am using Visual Studio 2013. I have added a reference to the DLL Microsoft Office 14.0 DLL and used following line of code:

using Word = Microsoft.Office.Interop.Word;

However I get following error when trying to run the application:

The type or namespace name 'Interop' does not exist in the namespace 'Microsoft.Office'

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Manpreet
  • 1
  • 3

1 Answers1

0

You need to add Interop of MSword into your project. Add reference->assemblies->Extensions find for the interop you want to add and add it.

Here is a little explanation about interop dll.

Community
  • 1
  • 1
Shrivallabh
  • 2,863
  • 2
  • 27
  • 47