一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

C#引用Office.word出错系统找不到 Microsoft.Office.Interop.Word

时间:2014-05-15 编辑:简简单单 来源:一聚教程网

"Could not load file or assembly 'Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies."

意思是说:“系统找不到文件或者程序集''Microsoft.Office.Interop.Word, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' 或者其中的某一部件。”添加引用的方法:

2、无法嵌入互操作类型“Microsoft.Office.Interop.Word.ApplicationClass”。请改用适用的接口。

这个解决办法:

无法嵌入互操作类型“Microsoft.Office.Interop.Word.ApplicationClass”。请改用适用的接口。

类型“Microsoft.Office.Interop.Word.ApplicationClass”未定义构造函数

解决办法:

在Visual Studio 中点击菜单项“视图->解决方案资源管理器”,在其中点开“引用”文件夹,在"Microsoft.Office.Interop.Word" 上点击鼠标右键,选择“属性”,将属性中的“嵌入互操作类型”的值改为“false”即可。

 

 

热门栏目