The type 'Microso…

来源:互联网 发布:淘宝楼梯实木踏步板 编辑:程序博客网 时间:2024/05/20 23:57


The type 'Microsoft.Office.Interop.Excel.ApplicationClass' has noconstructors defined

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

---Solution---

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

 

More info on the why canbe found here:http://blogs.msdn.com/b/mshneer/archive/2009/12/07/interop-type-xxx-cannot-be-embedded-use-the-applicable-interface-instead.aspx

阅读全文
0 0