TPDFlibTableExportOptions

Tables

Description

TPDFlibTableExportOptions controls the layout and styling of a dataset export; start from DefaultTableExportOptions and override single fields instead of filling the whole record by hand

Distances are millimetres and colours are RGB component triples in the range 0 to 1

Syntax

Delphi

TPDFlibTableExportOptions = Record
  Left: Double;
  Top: Double;
  BottomMargin: Double;
  ColumnWidth: Double;
  RowHeight: Double;
  HeaderColor: Array [0..2] Of Double;
  HeaderTextColor: Array [0..2] Of Double;
  StripeColor: Array [0..2] Of Double;
  Stripe: Boolean;
  RepeatHeader: Boolean;
  Title: string;
End;

Fields

LeftThe table left edge in millimetres
TopThe table top on the first page in millimetres
BottomMarginThe bottom margin in millimetres that drives pagination
ColumnWidthThe default column width in millimetres
RowHeightThe row height in millimetres, where 0 lets the cells measure themselves
HeaderColorThe header band fill as an RGB triple in 0 to 1
HeaderTextColorThe header text colour as an RGB triple in 0 to 1
StripeColorThe zebra-stripe fill as an RGB triple in 0 to 1
StripeEnables zebra striping of alternating rows
RepeatHeaderRe-draws the header row at the top of each continuation page
TitleAn optional title drawn above the table

See also

DefaultTableExportOptions, TPDFlibTableExporter, PDFlibExportDataSet, TPDFlibTableFieldSpec