你要是快速导入我还没有用过,我这里有很笨的办法,不过速度也很快。 openfileindialog.Filter:='Excel files(*.xls)|*.xls'; if openfileindialog.Execute then exlfilnam:=openfileindialog.FileName ExcelApp := CreateOleObject( 'Excel.Application' ); ExcelApp.WorkBooks.Open(exlfilnam); sheet:=ExcelApp.ActiveSheet; With fdataquery do begin for i:=1 to FieldCount do begin FieldByName('date').AsDateTime:=sheet.cells[i,1];//日期类型 Fields[j].AsFloat:=sheet.cells[i,ecolumn]; //数据类型,也可以自己定义你需要的类型 end; end; ExcelApp.WorkBooks.Close; ExcelApp.Quit;
----------------------------------------------
-