阅读100 返回首页    go 阿里云 go 技术社区[云栖]


Interop type 'Microsoft.Office.Interop.Word.ApplicationClass' cannot be embedded. Use the applicable

错误信息:

        Interop type 'Microsoft.Office.Interop.Word.ApplicationClass' cannot be embedded. Use the applicable interface instead.

翻译:

        无法嵌入互操作类型“Microsoft.Office.Interop.Excel.ApplicationClass”。请改用适用的接口。

解决方法:

        In your Project, expand the "References", find the Microsoft Office Interop reference. Right click it and select properties, and change "Embed Interop Types" to false.

翻译:

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

如下图:


最后更新:2017-04-03 12:55:50

  上一篇:go IIS6 伪静态 IIS文件类型映射配置方法 【图解】
  下一篇:go 【Android】数据共享 sharedPreferences 相关注意事项