This article is a mirror article of machine translation, please click here to jump to the original article.

View: 21606|Reply: 0

[Source] The interop type "Microsoft.Office.Interop.Word.ApplicationClass" cannot be embedded. Please use ...

[Copy link]
Posted on 4/7/2016 7:06:02 PM | | |
The interop type "Microsoft.Office.Interop.Word.ApplicationClass" cannot be embedded. Use the appropriate interface instead.



This workaround:

The interop type "Microsoft.Office.Interop.Word.ApplicationClass" cannot be embedded. Use the appropriate interface instead.

The constructor of type "Microsoft.Office.Interop.Word.ApplicationClass" is not defined

Solution:

In Visual Studio, click the menu item "View-> Solution Explorer", click the "References" folder there, right-click on "Microsoft.Office.Interop.Word", select "Properties", and change the value of "Embedded Interop Type" in the property to "false".





Previous:itextsharp is an open-source component for generating PDFs
Next:Microsoft.Office.Interop.Word operation word template document
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com