Click here to Skip to main content
15,617,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Team,

I am getting error namespace name 'Excel' does not exist in 'Microsoft.Office.Interop'

I tried adding Add Reference >.NET>Microsoft.office.Interop.outlook as solution

but could not find Microsoft.office.Interop.outlook in Add reference.

I am using visual webdeveloper 2008 express edition.

Please help me in this.

Thanks,
Kranthi
Posted

Your title and the body of the question contradict to each other.

From your question title, it's clear that you expected Microsoft.Office.Interop.Excel.Excel to exist. (Read your own title carefully.) You can easily make sure that such type does not exist:
http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel%28v=office.14%29.aspx[^].

You just messed up things. And then you though that Excel should be in Microsoft.Office.Interop, as it is expressed in the body of the question. Of course it exists, but this is always a namespace, not a type. You might want to work with the types, like Microsoft.Office.Interop.Excel.Application, as well as any other types.

—SA
 
Share this answer
 
That means Excel is not installed on your system.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900