What IMEX mean in connection string with Excel

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;
***************************************************************
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top