开发者

Problems of reading Excel 2003 using Oledb

开发者 https://www.devze.com 2022-12-30 22:10 出处:网络
I trie开发者_StackOverflowd to use Oledb to open Excel 2003.Looks like I can read most of data, but for some cells (such as number), the value returned is Null.Any suggestion?

I trie开发者_StackOverflowd to use Oledb to open Excel 2003. Looks like I can read most of data, but for some cells (such as number), the value returned is Null. Any suggestion?

My connection string: ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Extended Properties=Excel 8.0;"


You might need to add ";IMEX=1" to the connection string. That tells the driver to read "intermixed" (numbers, dates, strings etc) data columns as text.

0

精彩评论

暂无评论...
验证码 换一张
取 消