标签:ctr sage controls .exe 引用 control ges mob sel
ExportGrid4ToEXCEL 这个老的版本用的,新的版本引用 cxGridExportLink 这个单元
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
cxClasses, cxControls, cxGridCustomView, cxGrid, ComCtrls,ComObj,
cxGridExportLink, ShowMsg, Menus,DBOperator,SqlHelp, RzCmboBx,
cxDropDownEdit, cxCheckBox, cxCalendar;
导出代码
SaveDialog1.FileName := ‘订单 ‘+Datetostr(DateTimePicker1.Date)+‘ 到 ‘+Datetostr(self.DateTimePicker2.Date);
if self.SaveDialog1.Execute then
ExportGridToExcel(self.SaveDialog1.FileName,cxGrid2,True,True,True,‘xls‘);
标签:ctr sage controls .exe 引用 control ges mob sel
原文地址:http://www.cnblogs.com/m0488/p/7402399.html