TDBGrid export support

dbGridHotPDFExport 附加單元(Lib\addons\DBGrid)把 TDBGrid dataset 的可見欄位與所有資料列寫成 PDF 表格。它會自行建立、填寫並儲存一個 THotPDF 文件,所以 grid 是它唯一需要的輸入

進入點

匯出內容

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