You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. OnPrintHeader event (read/write/published) |
Top Previous Next |
Declaration procedure OnPrintHeader(Sender: TObject);
Category
Description This event will be called before the body for each page that has been printed. This can be useful for printing similar headers for each page.
See also TBaseReport Class, GotoHeader, OnPrintFooter, PrintHeader
Example (Delphi) procedure TReportForm.PrintHeaderReport5(Sender: TObject); begin { PrintHeaderReport5 } with Sender as TBaseReport do begin MarginTop := 0.5; SetFont('Arial',24); Underline := true; Home; PrintCenter('Customer List', PageWidth / 2); MarginTop := 1.0; end; { with } end; { PrintHeaderReport5 }
Example (C++Builder) void __fastcall TReportForm:: PrintHeaderReport5 (TObject *Sender) { TBaseReport* rp = dynamic_cast<TBaseReport*>(Sender); rp1->MarginTop = 0.5; rp1->SetFont("Arial",24); rp1->Underline = true; rp1->Home(); rp1->PrintCenter("Customer List", rp1->PageWidth / 2); rp1->MarginTop = 1.0; } |
You are reading help file online using chmlib.com
|