DataTable dtExcel = new DataTable(); string SourceConstr = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source='" + filename + "';Extended Properties= 'Excel 8.0;HDR=Yes;IMEX=1'"; OleDbConnection con = new OleDbConnection(SourceConstr); Query = "Select * from [Sheet1$]"; OleDbDataAdapter data = new OleDbDataAdapter(Query, con); data.Fill(dtExcel);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)