A
ad
My Connection String for excel have some problem before, it can't read some
cells.
The old stirng is
***************************************************************
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=c:\\Health.xls;" +
"Extended Properties=" +
"Excel 8.0;IMEX=1;" ;
***************************************************************
After the guide of Paul, changing the string by add IMEX and (char)34, it
run well now.
But I do'nt know what IMEX mean
Can some one tell me!
***************************************************************
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=c:\\Health.xls;" +
"Extended Properties=" +
(char)34 + "Excel 8.0;IMEX=1;" + (char)34;
***************************************************************
cells.
The old stirng is
***************************************************************
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=c:\\Health.xls;" +
"Extended Properties=" +
"Excel 8.0;IMEX=1;" ;
***************************************************************
After the guide of Paul, changing the string by add IMEX and (char)34, it
run well now.
But I do'nt know what IMEX mean
Can some one tell me!
***************************************************************
string sConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;" +
"Data Source=c:\\Health.xls;" +
"Extended Properties=" +
(char)34 + "Excel 8.0;IMEX=1;" + (char)34;
***************************************************************