摘要:
string name=sheet.Name; //获取该sheet的名称string amount=book.WorkSheets.Count.ToString(); //获取该book的sheet数量。string sSheetName=null;object missing = Missing.Value;OleDbConnection conn = new OleDbConnection(... 阅读全文
摘要:
public DataSet ImportDataBase(string path){string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + path + ";" + "Extended Properties=Excel 8.0;"; OleDbConnection conn = new OleDbConnec... 阅读全文