Flyinsky

志在四方,浪迹天涯

导航

excel to dataset

string strConn= "Provider=Microsoft.Jet.OleDb.4.0;" + "data source="+Path+ ";Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'";

"HDR=Yes;" indicates that the first row contains columnnames, not data
"IMEX=1;" tells the driver to always read "intermixed" data columns as text

posted on 2004-09-22 16:40  flyinsky  阅读(373)  评论(0编辑  收藏  举报