i am using the following connectionstring
Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Convert.ToString(pa) + ";" + "Extended Properties=Excel 8.0
but when a column contains only numeric value it reads it as empty
any idea? kindly help
i am using the following connectionstring
Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Convert.ToString(pa) + ";" + "Extended Properties=Excel 8.0
but when a column contains only numeric value it reads it as empty
any idea? kindly help
Read this blog post
http://blog.lab49.com/archives/196
to understand better what is happening here. To make it short: using OleDb to read Excel sheets is very unreliable by (bad!) design. Here is a much better alternative (for the old non-XML Excel file format):
http://jexcelapi.sourceforge.net/
(under the Files section you will find a C# port of this Java library).