14
12/11
获取EXCEL中的工作表名
//获取EXCEL中的工作表名 public static DataTable GetExcelTableNames(string excelPath) { DataTable dt; string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + excelPath + ";" + "Extended Properties=Excel 5.0;"; using (OleDbConnection conn = new OleDbConnection(strConn)) { conn.Open(); dt = conn.GetOleDbSchemaTable(OleD...