如何引用DLL的Microsoft.Office.Interop.Excel? [英] How to reference Microsoft.Office.Interop.Excel dll?
本文介绍了如何引用DLL的Microsoft.Office.Interop.Excel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我一直在使用MS VS 2005现在发展与Excel表涉及的系统在2006年,我不能使用MS VS 2012相同的参考。
VAR应用=新Microsoft.Office.Interop.Excel.Application();
工作簿WBS = app.Workbooks;
解决方案
在您的项目,在参考单击鼠标右键,选择添加引用。
VS二千零十三分之二千零十二:
选择左侧的扩展,并查找的Microsoft.Office.Interop.Excel
。
请注意,您可以只输入创先争优进入搜索框右上角。
VS 2008/2010:
看.NET选项卡下。
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:
Select "Extensions" on the left and look for Microsoft.Office.Interop.Excel
.
Note that you can just type "excel" into the search box in the upper-right corner.
VS 2008 / 2010:
Look under the .NET tab.
这篇关于如何引用DLL的Microsoft.Office.Interop.Excel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文