打开APP
userphoto
未登录

开通VIP,畅享免费电子书等14项超值服

开通VIP
Cxgrid数据导出
uses cxGridExportLink;

 if cxgrdbtblvw_Log.DataController.RecordCount<1 then exit;
 ExportGridToExcel(OrderNoTxt.Text, cxGrid2, true, true, true, 'xls');
 ExportGridToHTM 
 ExportGridToXML
 ExportGridToText
 ExportGridToXLSX
 ExportGridToFile

==========未验证======================================
  procedure ExportGridToHTML(const AFileName: string; AGrid: TcxGrid;
    AExpand: Boolean = True; ASaveAll: Boolean = True; const AFileExt: string = 'html');
导出为Html格式

  procedure ExportGridToXML(const AFileName: string; AGrid: TcxGrid;
    AExpand: Boolean = True; ASaveAll: Boolean = True; const AFileExt: string = 'xml');
导出为XML格式

  procedure ExportGridToText(const AFileName: string; AGrid: TcxGrid;
    AExpand: Boolean = True; ASaveAll: Boolean = True; const ASeparator: string = '';
    const ABeginString: string = ''; const AEndString: string = '';
    const AFileExt: string = 'txt');
导出为文本文件格式

  procedure ExportGridToExcel(const AFileName: string; AGrid: TcxGrid;
    AExpand: Boolean = True; ASaveAll: Boolean = True; AUseNativeFormat: Boolean = True;
    const AFileExt: string = 'xls');
导出为xls格式

  procedure ExportGridToXLSX(const AFileName: string; AGrid: TcxGrid;
    AExpand: Boolean = True; ASaveAll: Boolean = True; AUseNativeFormat: Boolean = True;
    const AFileExt: string = 'xlsx');
导出为xlsx格式

  procedure ExportGridToFile(AFileName: string; AExportType: Integer;
    AGrid: TcxGrid; AExpand, ASaveAll, AUseNativeFormat: Boolean;
    const ASeparator, ABeginString, AEndString: string; const AFileExt: string);

导出为自定义格式,其实就是自定义 分隔符 开始字符 结束字符
=======================================================
本站仅提供存储服务,所有内容均由用户发布,如发现有害或侵权内容,请点击举报
打开APP,阅读全文并永久保存 查看更多类似文章
猜你喜欢
类似文章
cxgrid数据导出到Excel方法 - 骆驼的日志 - 网易博客
又一ftp服务器源码
delphi实现数字签名
Inno Setup入门(二十五)——Inno Setup类参考(11)
在Delphi程序中操作注册表
delphi注册表操作(读取、添加、删除、修改)完全手册 (1)
更多类似文章 >>
生活服务
热点新闻
分享 收藏 导长图 关注 下载文章
绑定账号成功
后续可登录账号畅享VIP特权!
如果VIP功能使用有故障,
可点击这里联系客服!

联系客服