R
Ranier Dunno
Hi,
I'm using an Excel-file generated by a third-party
application as input to my C# app. The problem occurs in
one of the worksheets in that Excel-file, where there is
a single column and no column name, so that the data
starts in the second row.
I'm connecting to the Excel-file as an OleDb-source,
using an OleDbDataAdapter to fill a DataTable. It works
fine for the other worksheets, but for this one, I get an
OleDbException when I try to fill the DataTable. The
exception message is 'Too many fields defined'. Does
anyone know this message, and how to avoid it?
I'm using an Excel-file generated by a third-party
application as input to my C# app. The problem occurs in
one of the worksheets in that Excel-file, where there is
a single column and no column name, so that the data
starts in the second row.
I'm connecting to the Excel-file as an OleDb-source,
using an OleDbDataAdapter to fill a DataTable. It works
fine for the other worksheets, but for this one, I get an
OleDbException when I try to fill the DataTable. The
exception message is 'Too many fields defined'. Does
anyone know this message, and how to avoid it?