错误信息:

错误 CS1752:Interop type ‘ApplicationClass’ cannot be embedded. Use the applicable interface instead.
CS1752:Interop type 'ApplicationClass' cannot be embedded. Use the applicable interface instead.

翻译:

无法嵌入互操作类型“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,就可以了。
CS1752:Interop type 'ApplicationClass' cannot be embedded. Use the applicable interface instead.

相关文章:

  • 2021-10-05
  • 2021-08-23
  • 2021-09-09
  • 2021-10-29
  • 2021-09-18
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-07-26
  • 2021-09-16
  • 2022-12-23
  • 2022-03-02
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案