我在哪里可以找到“microsoft.office.interop.excel”。在Assembly / COM浏览器窗口中?

问题描述:

我想将参考 microsoft.office.interop.excel 添加到我的项目中。

I wanted to add the reference microsoft.office.interop.excel to my project.

我去了Project> Properties> References>并点击 Add ... 按钮。

I went to Project > Properties > References > and clicked the Add... button.

参考管理器对话框中,我有以下选项:

In the Reference Manager dialog, I have the following options:


  • 装配

  • 框架

  • 项目文件夹

  • COM

  • 搜索

  • Assemblies
  • Frameworks
  • Project folder
  • COM
  • Search

有一个搜索窗口。我输入了 microsoft.office.interop.excel ,但它找不到。

There is a search window. I typed microsoft.office.interop.excel, but it is just not found.

我不得不浏览它可以在我的驱动器上手动定位。

I had to browse for it to locate it manually on my drive.

为什么?

项目菜单> 添加参考
在COM选项卡上,找到 Microsoft Excel 15.0对象库

这是包含 Microsoft.Office.Interop.Excel.dll

如果系统提示您为所选库生成包装器,请单击

If you are prompted to generate wrappers for the libraries that you selected, click Yes.