命名空间名称'Excel'在'Microsoft.Office.Interop.Excel中不存在 [英] namespace name 'Excel' does not exist in 'Microsoft.Office.Interop.Excel

查看:290
本文介绍了命名空间名称'Excel'在'Microsoft.Office.Interop.Excel中不存在的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi Team,



我收到错误命名空间名称'Excel'在'Microsoft.Office.Interop'中不存在



我尝试添加Add Reference> .NET> Microsoft.office.Interop.outlook作为解决方案



但找不到Microsoft.office .Interop.outlook in Add reference。



我使用的是visual webdeveloper 2008快递版。



请帮助我。



谢谢,

Kranthi

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

推荐答案

你的标题和问题的主体相互矛盾。



从您的问题标题中,很明显您预期 Microsoft.Office.Interop。 Excel.Excel 存在。 (仔细阅读您自己的标题。)您可以轻松确保此类型不存在:

http://msdn.microsoft.com/en-us/library/microsoft.office.interop.excel%28v=office.14%29。 aspx [ ^ ]。



你刚搞砸了。然后你虽然 Excel 应该在 Microsoft.Office.Interop 中,因为它表示在题。当然它存在,但这始终是命名空间,而不是类型。您可能希望使用类型,例如 Microsoft.Office.Interop.Excel.Application ,以及任何其他类型。



-SA
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


这意味着您的系统上没有安装Excel。
That means Excel is not installed on your system.


这篇关于命名空间名称'Excel'在'Microsoft.Office.Interop.Excel中不存在的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆