Microsoft.Office.Interop.Excel 程序集引用 ,Microsoft.Office.Interop.Excel.ApplicationClass 无法嵌入互操作类型

using Microsoft.Office.Interop.Excel   添加程序集引用

方法:在引用--程序集--扩展中,添加引用Microsoft.Office.Interop.Excel,此版本14.0

Microsoft.Office.Interop.Excel.ApplicationClass    无法嵌入互操作类型

方法:将引用的DLL:Microsoft.Office.Interop.Excel;属性,嵌入互操作类型改为false,就可以了。

原文地址:https://www.cnblogs.com/gaoquanning/p/5209161.html