One problem encountered in a call Microsoft.Office.Interop.Word instantiated on C #

Description of the problem: the type can not be embedded Interoperability "ApplicationClass". Please use the applicable interfaces - Microsoft.Office.Interop.Word.ApplicationClass

It is a simple example of the code

 Application app = new ApplicationClass();

Find some information found is Microsoft.Office.Interop.Word the dll problems cited, in fact, this problem is relatively simple, but do not know will give you a special report unrelated error.

Vs dll just need to find the reference, as shown at attribute set, the "embedded interop type" modified to false on the line.

 

By compiling this specific question behind it more specific analysis.

 

Guess you like

Origin www.cnblogs.com/zlero/p/12394658.html