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');

相关文章:

  • 2021-10-15
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-02-03
  • 2021-07-25
  • 2021-05-11
猜你喜欢
  • 2022-12-23
  • 2023-02-04
  • 2021-12-15
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案