Recently, the project encountered a strange problem. Add an Excel reference to the project, right-click the reference, and select properties. The "embedded interoperability type" cannot be found because when the office component is referenced, set the "embedded interoperability type" to false. Otherwise, the compilation fails. Baidu later found a solution to the problem.
Problem:
Solution 1:
Modify the target framework of the Project to. NET Framework 4 and later.
Solution 2:
If the target framework of the project must be. Net framework2.0, you can modify it in the project file. csproj.
Open the project file in txt,
In this way, the work is finished.
one piece of cake
At home
If you need consultation on office export and other related functions, please add Q: 371323761. I will provide paid technical consultation.
"Embedded interoperability type" cannot be found in the right-click property of office component DLL in vs2010