Keywords: namespace type namespace OfficeProgramSet Reference InterOP Excel Workbook Worksheet
The namespace "Microsoft" does not contain a type or namespace name" Office "(Is the Assembly reference missing ?)
Solution:
Add reference/COM/Microsoft Office 11.0 Object Library
Then in the program
C # Code
- UsingMicrosoft. Office. InterOP. Excel;
Using Microsoft. Office. InterOP. Excel;
Other errors may occur in the program.
Yes
The namespace "Microsoft Office" does not contain a type or namespace name"InterOP"(Is the Assembly reference missing ?)
The namespace "Microsoft. Office. InterOP" does not contain a type or namespace name"Excel"(Is the Assembly reference missing ?)
The type or namespace name "cannot be foundWorkbook"(Is the using command or assembly reference missing ?)
The type or namespace name "cannot be foundWorksheet"(Is the using command or assembly reference missing ?)
SoAdd another reference/COM/Microsoft Excel 11.0 Object Library
Problem Solving