Asp.net 使用Microsoft office电子表格将Excel表格嵌入VB.Net表单时出错

Asp.net 使用Microsoft office电子表格将Excel表格嵌入VB.Net表单时出错,asp.net,vb.net,excel,Asp.net,Vb.net,Excel,我正在使用Visual studio 2012&创建一个VB.Net Windows窗体应用程序,而我正在尝试将excel工作表数据嵌入窗体中 我已经安装了Office web组件11。拖放Microsoft office电子表格项目时,显示以下错误 导入ActiveX控件失败。请确保已正确注册。 PFB快照 *生成控制台:)* 注意:我可以使用VBA表单在我的系统中嵌入excel工作表。 我正在使用Microsoft 2010。看起来您可以进行拖放操作,单击“确定”,然后重新生成并再次尝试拖放

我正在使用Visual studio 2012&创建一个VB.Net Windows窗体应用程序,而我正在尝试将excel工作表数据嵌入窗体中

我已经安装了Office web组件11。拖放Microsoft office电子表格项目时,显示以下错误

导入ActiveX控件失败。请确保已正确注册。 PFB快照

*生成控制台:)*

注意:我可以使用VBA表单在我的系统中嵌入excel工作表。
我正在使用Microsoft 2010。

看起来您可以进行拖放操作,单击“确定”,然后重新生成并再次尝试拖放。
如果这不起作用,那么您可以从MS查看此指南

我已多次尝试重建它。。但是没有运气。。我现在在帖子中添加了一些日志。请看一看“解决方案资源管理器”中是否有错误的引用?我没有在解决方案资源管理器中添加任何引用。problemCOM引用“OWC11”是ActiveX控件“AxOWC11”的互操作程序集,但被编译器用/link标志标记为链接。此COM引用将被视为引用,不会被链接。如何为此运行Regsvr32?
------ Build started: Project: WindowsApplication7, Configuration: Debug Any CPU ------
  COM Reference 'OWC11' is the interop assembly for ActiveX control 'AxOWC11' but was marked to be linked by the compiler with the /link flag. This COM reference will be treated as a reference and will not be linked.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3284: Cannot get the file path for type library "7c0ffab0-cd84-11d0-949a-00a0c91110ed" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3303: Could not resolve COM reference "0002e558-0000-0000-c000-000000000046" version 1.0. Object reference not set to an instance of an object.
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): warning MSB3284: Cannot get the file path for type library "7c0ffab0-cd84-11d0-949a-00a0c91110ed" version 1.0. Library not registered. (Exception from HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))
C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(2015,5): error MSB3303: Could not resolve COM reference "0002e558-0000-0000-c000-000000000046" version 1.0. Object reference not set to an instance of an object.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========