public class ExcelHelper { public class x2003 { #region Excel2003 /// <summary> /// 将Excel文件中的数据读出到DataTable中(xls) /// </summary> /// <param name="file"></param> /// <returns></returns> public static DataTable
窗体上拖放ADOQuery1,DataSetProvider1,DataSource1,ClientDataSet1,OpenDialog1, ExcelApplication1,ExcelWorkbook1,ExcelWorksheet1控件. Function TForm1.ADOOpenExls:Boolean; var connstr,FirstSheetName: String; begin // ADO读取EXCEL文件方法. Result := False; DataS