天天看点

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

错误信息:

        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.

翻译: