Reputation: 13
I have included Microsoft Office 2013 components reference in my project but still it is showing
"interop does not exist in Microsoft.Office namespace".
Upvotes: 1
Views: 9772
Reputation: 41
This post is a bit old but seems like the most likely to show up in a search given the original title.
This happened to me today out of the blue in a system that has been using interop.excel for almost 10 years.
After some hair pulling - the answer turned out to be that lowercase "interop" produces the error while upper case I ( "Interop" ) resolves it.
Further, I have not changed that "using" statement in at least 5 years, go figure.
Upvotes: 1
Reputation: 74
According to your question you have missing Microsoft Office 12.0 Object Library. Go to references and add reference "Microsoft Office 12.0 Object Library" or "Microsoft Office 14.0 Object Library" it will resolve your error.
Upvotes: 3