您的位置:首页 > 其它

The type 'Microso…

2017-08-05 17:43 323 查看



The type 'Microsoft.Office.Interop.Excel.ApplicationClass' has no
constructors defined

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

---Solution---

Disable embedding of
Interop types for this assembly (References ->
Microsoft.Office.Interop.Outlook (right click) -> Properties
-> Set 'Embed Interop Types' to False)

 

More info on the why can
be found here: http://blogs.msdn.com/b/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: