zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Interop type 'Microsoft.Office.Interop.Word.ApplicationClass' cannot be embedded. Use the applicable

amp The 39 Cannot be type word use
2023-09-14 09:03:14 时间
错误信息:         Interop type Microsoft.Office.Interop.Word.ApplicationClass cannot be embedded. Use the applicable interface instead.         无法嵌入互操作类型“Microsoft.Office.Interop.Excel.Applic

错误信息:

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

翻译:

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

解决方法:

        In your Project, expand the "References", find the Microsoft Office Interop reference. Right click it and select properties, and change "Embed Interop Types" to false.

翻译:

       解决办法是将引用的DLL:Microsoft.Office.Interop.Excel;的嵌入互操作类型改为false,就可以了。

如下图:



Microsoft.Office.Interop.Word 创建word Microsoft.Office.Interop.Word 创建word 转载:http://www.cnblogs.com/chenbg2001/archive/2010/03/14/1685746.html 功能总结或者完善。