when adding a reference I see:
.net tab
microsoft.office.tools.excel
is that the one I need to read a excel file?
other posts seem to be using a COM assembly with ‘interop’ in it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The Interop one is available on the COM tab if you have Excel installed. It will be “Microsoft Excel 12.0 Object Library” or similar. The version number represents the version of Office so make sure you get the one you’re after, though Office should be backwards compatible if you select an older one.
This will give you a reference under the references folder of: Microsoft.Office.Interop.Excel