I have been using OleDbConnection
to read an Excel files from my C# code.
Everything work great when the file has a top header row and the data following it down.
The following connection string is used:
var query = "SELECT [Col1],[Col2],[Col3] FROM [Sheet1$]";
Now I need to process an Excel file that has an obligatory content from the first down to the 15th row. The 15th row is a header row and the rest is the data for the rows.
How can I read such a file?