用DataSet读取EXCEL一个工作表的内容为什么老是少工作表第一行的数据
Dim connstr As String = "Provider=Microsoft.jet.oledb.4.0;data source=" & fp & ";extended properties='Excel 8.0;hdr=yes;imex=1'"
Dim sql As String = "select * from [Sheet1$]"
Dim da As New OleDb.OleDbDataAdapter(sql, connstr)
Dim ds As New DataSet
Dim dt As New System.Data.DataTable
da.Fill(ds)
dt = ds.Tables(0)