C # Operations Office-cannot find the interop type that matches the embedded interop type ' Microsoft.Office.Interop.Excel.Applicatio N

Source: Internet
Author: User

Online say

2003, 11.0,

12.0.

Because the usual hint "is youmissing an assembly reference?", there is no reference to the library file, but clearly I have added a good reference, or an error. The machine is installed with a Office2010, but in the library reference, V14.0 is not working, excel in Office 2010 is still using v12.0.

The error in handling the topic is to set the "Embedded Interop Type" property in the library file to False. (Suddenly remember ' embedded interop type ', so guess, unexpectedly guessed right).

C # Operations Office-cannot find the interop type that matches the embedded interop type ' Microsoft.Office.Interop.Excel.Applicatio N

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.