1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| type
Tpdf = class(TJPFpdf)
public
procedure Header; override;
procedure Footer; override;
private
end;
[...]
procedure Tpdf.header();
begin
SetFont(ffTimes, fsBold, 12);
SetFillColor(cSilver);
Cell(70, 6, 'Nome g yg uuihu', 'BTLR', 0, 'J', 1);
Cell(30, 6, 'Nascimento', 'BTLR', 0, 'C', 1);
Cell(30, 6, 'Telefone', 'BTLR', 0, 'C', 1);
Cell(30, 6, 'Celular', 'BTLR', 0, 'C', 1);
Cell(30, 6, 'Fax', 'BTLR', 1, 'C', 1);
SetFont(ffTimes, fsNormal, 12);
end;
procedure Tpdf.footer;
begin
SetY(Self.fh - 18);
SetUTF8(false);
SetFont(ffTimes, fsNormal, 8);
Cell(95, 5, 'Imprimé le ' + FormatDateTime(
'dd mmmm yyy "à" hh:mm:ss', now), '', 0, 'L');
Cell(95, 5, 'Page' + FormatFloat('000', PageNo) + '/+n+', '', 0, 'R');
end; |
Partager