摘要:
public static string GetConnectionString(string FileName) { if (FileName.ToLower().EndsWith("xls")) { return "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + FileName + ";Extended Properties='Excel 8.0;HDR=No;IMEX=1;';Persist Security Info=False";... 阅读全文