今天我在做Word VSTO项目是后发生了编译错误:"Interop type 'Microsoft.Office.Interop.OneNote.Application' cannot be embedded. Use the applicable interface instead."
解决方案为:
在Microsoft。Office。Interop。Word右键属性:
Embed Interop Type设置为False:
今天我在做Word VSTO项目是后发生了编译错误:"Interop type 'Microsoft.Office.Interop.OneNote.Application' cannot be embedded. Use the applicable interface instead."
解决方案为:
在Microsoft。Office。Interop。Word右键属性:
Embed Interop Type设置为False:
转载于:https://www.cnblogs.com/zhangdinet/archive/2012/12/27/2835679.html