Interop type 'Microsoft.Office.Interop cannot be embedded

今天我在做Word VSTO项目是后发生了编译错误:"Interop type 'Microsoft.Office.Interop.OneNote.Application' cannot be embedded. Use the applicable interface instead."

 解决方案为:

MicrosoftOfficeInteropWord右键属性:

 

Embed Interop Type设置为False

 

 

posted on 2012-12-27 14:42  zhangdinet  阅读(170)  评论(0编辑  收藏  举报