3,888 questions
Thanks a lot Karen. Please find your answer as follows-
- Where is the Excel file?
- "C:\Users\bups2\myData.xlsx"
- Is the Excel file .xls or .xlsx ?
- .xlsx
- Please provide the connection string
- I have used in the namespace - System.Data.Oledb
- System.Data.OleDb.OleDbConnection MyConnection- When I declared the connection OleDbConnection gives error
- What is the full error message text ?
- The type name 'OleDbConnection' could not be found in the namespace 'System.Data.OleDb'. This type has been forwarded to assembly 'System.Data.OleDb, Version=0.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' Consider adding a reference to that assembly.
- What do you mean by Exploring web contents ?
- I mean that I explored internet to know how can I connect excel file from C#.net.
Please help me. Thanks again.