TDBGrid 导出支持

dbGridHotPDFExport 附加单元(Lib\addons\DBGrid)把 TDBGrid dataset 的可见列和所有行写成一个 PDF 表格。它自己创建、填充并保存 THotPDF 文档,因此网格是它唯一的输入

入口

导出内容

Dataset 状态

示例

uses
  dbGridHotPDFExport;

var
  Options: TDBGridHotPDFExportOptions;
begin
  Options:= DBGridHotPDFDefaultOptions;
  Options.Title:= 'Customers';
  Options.PageWidth:= 842;   // A4 landscape
  Options.PageHeight:= 595;
  DBGridHotPDFExportToFile(DBGrid1, 'Customers.pdf', Options);
end;

相关 API