如何引用Microsoft.Office.Interop.Excel dll? [英] How to reference Microsoft.Office.Interop.Excel dll?

查看:275
本文介绍了如何引用Microsoft.Office.Interop.Excel dll?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个使用MS VS 2005在2006年处理excel表的系统。现在,我不能使用与MS VS 2012相同的参考。

I had developed a system that deals with excel sheets in 2006 using MS VS 2005. Now, I can not use the same reference with MS VS 2012.

var app = new Microsoft.Office.Interop.Excel.Application();
Workbooks wbs = app.Workbooks;


推荐答案

在您的项目中,右键单击参考并选择添加参考。

In your project, right-click on "References" and select "Add Reference".

VS 2012/2013:

选择左侧的扩展,查找 Microsoft.Office.Interop.Excel

Select "Extensions" on the left and look for Microsoft.Office.Interop.Excel.

请注意,您可以在右上角的搜索框中输入excel。

Note that you can just type "excel" into the search box in the upper-right corner.

VS 2008/2010:

查看.NET选项卡。

这篇关于如何引用Microsoft.Office.Interop.Excel dll?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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