读取Excel中的数据  strConn = "Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =D:\1-2300.xls;Extended Properties=Excel 8.0"
读取Excel中的数据      oleConn 
= New OleDbConnection(strConn)
读取Excel中的数据      da 
= New OleDbDataAdapter("select * from [1$]", strConn)
读取Excel中的数据      da.Fill(ds)
读取Excel中的数据      dgv.DataSource 
= ds.Tables(0)
读取Excel中的数据

相关文章: