[英]adding microsoft.office.interop.excel to visual studio 2015 does not work
I currently making an inventory management system for thee company I am currently hired in. The system requires me to export data from DataGridView
to Excel. 我目前正在为当前雇用的您的公司制作一个库存管理系统。该系统要求我将数据从
DataGridView
导出到Excel。 I have tried clicking "Add Reference" to my references in solution explorer and selecting Microsoft.Office.Interop.Excel
but after I click OK it still is not in my references. 我尝试在解决方案资源管理器中单击“添加引用”到我的引用,然后选择
Microsoft.Office.Interop.Excel
但是单击“确定”后,它仍然不在我的引用中。 I tried it in my code but then I get this error: 我在我的代码中尝试过,但是随后出现此错误:
Error CS0234 The type or namespace name 'Office' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
错误CS0234类型或名称空间名称“ Office”在名称空间“ Microsoft”中不存在(您是否缺少程序集引用?)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.