procedure tfrmzjmovesch.bitbtn2click(sender: tobject);
var 【程序编程相关:需求的不确定性】 【推荐阅读:clientdataset不能在线程中使】 wd: twritedata ; 【扩展信息:《Thinking in Java》学习】 begin wd := twritedata.create ; wd.qry := qryzjmovesch; wd.summary.add(´铸件移交计划:´); wd.summary.add(´所有生产批号!´); wd.summary.add(´create by: ´+frmmain.username); wd.summary.add(datetostr(now)); tryif savedialog1.execute then
wd.exporttofile(savedialog1.filename, true); finally wd.free ; end; // end; unit writedata;interface
uses
windows, messages, sysutils, variants, classes, graphics, controls, forms, dialogs, grids, dbgrideh, db, adodb, stdctrls, buttons, xpmenu, dbgrids;//目标是: 通过普通adoquery来导出数据!
//create by yxf //date: 2004-10-05 //type
tcolumnslist = class(tlist)
private function getcolumn(index: integer): tcolumn; procedure setcolumn(index: integer; const value: tcolumn); public property items[index: integer]: tcolumn read getcolumn write setcolumn; default; end;tcolcellparams = class
protected falignment: talignment; fbackground: tcolor; fcol: longint; ffont: tfont; fimageindex: integer; freadonly: boolean; frow: longint; ... 下一页