摘要:
public DataSet ImportFromExcel(string filePath){DataSet ds = new DataSet();string connString = "Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source = " + filePath + ";Extended Properties=\"Excel 8.0;HDR=Yes;IMEX=1\"";DataTable table = OleDbHelper.GetExcelTables(connString) 阅读全文