public OleDbConnection OpenConnection(string FilePath) { string ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + FilePath + "; Extended Properties='Excel 8.0; IMEX=1'"; OleDbConnection con = new OleDbConnection(ConnectionString); con.Open(); return con; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)