G
Guest
I am sorry but I am reporsting this because It was little urgent.
I need some one to help me out here to understand the problem.
I am trying to read an excel sheet and I am using the following connection
string-
"Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties='Excel
8.0;HDR=YES;IMEX=1';Data Source=FILENAME"
While reading a first column (there are several columns) of one of the
spreadsheets I started having problem that for few rows the dataset I get
DBNULL values but the spreadsheet has the value for that row. I checked the
spreadsheet and I found that there is error notification on that cell "The
number in this cell is formatted as text or preceded by an apostrophe"; I
just converted those values to numbers and everything went well.
But I do I have anoother spreadsheet which has the same error descriptions
in it but when I import it without correcting it, everything goes fine
without any issues.
I am not able to understand why it's behaving in different way. I need some
one to help me here. Would appreciate.
Thanks,
Dinesh
I need some one to help me out here to understand the problem.
I am trying to read an excel sheet and I am using the following connection
string-
"Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties='Excel
8.0;HDR=YES;IMEX=1';Data Source=FILENAME"
While reading a first column (there are several columns) of one of the
spreadsheets I started having problem that for few rows the dataset I get
DBNULL values but the spreadsheet has the value for that row. I checked the
spreadsheet and I found that there is error notification on that cell "The
number in this cell is formatted as text or preceded by an apostrophe"; I
just converted those values to numbers and everything went well.
But I do I have anoother spreadsheet which has the same error descriptions
in it but when I import it without correcting it, everything goes fine
without any issues.
I am not able to understand why it's behaving in different way. I need some
one to help me here. Would appreciate.
Thanks,
Dinesh