"Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " + file + ";Extended Properties=Excel 8.0; "; OleDbConnection con = new OleDbConnection(ConnStr; OleDbCommand com = new OleDbCommand( "SELECT * FROM [sheet1$] where "+StrSql, con; OleDbDataAdapter ada = new OleDbDataAdapter(com; DataSet ds=new DataSet(; DataTable dt = new DataTable(;