PDFlibExportDataSet

Tables

Description

PDFlibExportDataSet is the convenience entry point of the dataset export: it configures the library for millimetres and a top-left origin, creates a TPDFlibTableExporter, runs the export and saves the document to the target file

The caller only needs to have created the TPDFlib instance; the DataSetExport demo calls this helper with DefaultTableExportOptions

Syntax

Delphi

Function PDFlibExportDataSet(APDF: TPDFlib; ADataSet: TDataSet;
  Const AFileName: string;
  Const AOptions: TPDFlibTableExportOptions): Boolean;

Fields

APDFThe library instance owning the export document
ADataSetAny open TDataSet whose fields and records are rendered
AFileNameThe output PDF file
AOptionsThe layout and styling options, typically from DefaultTableExportOptions

Return value

True when the export and save succeeded

See also

TPDFlibTableExporter, DefaultTableExportOptions, TPDFlibTableExportOptions, SaveToFile