You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TBaseReport. OnBeforePrint event (read/write/published) |
Top Previous Next |
Declaration procedure OnBeforePrint(Sender: TObject);
Category
Description This event is called before the print job has begun. This can be useful to initialize non-report items such as table record pointers. This event can also be useful to set report items that must be set before the print job begins (such as paper size and orientation).
See also TBaseReport Class, Execute, OnAfterPrint
Example (Delphi) procedure TReportForm.BeforePrintReport5(Sender: TObject); begin { BeforePrintReport5 } with Sender as TBaseReport do begin StatusFormat := 'Printing Page '#13''#13''; StatusText.Add(''); StatusText.Add(''); end; { with } CustomerTable.First; end; { BeforePrintReport5 }
Example (C++Builder) void __fastcall TReportForm:: BeforePrintReport5 (TObject *Sender) { TBaseReport* rp = dynamic_cast<TBaseReport*>(Sender); rp1->StatusFormat = "Printing Page \n\n"; rp1->StatusText->Add(""); rp1->StatusText->Add(""); CustomerTable->First(); } / BeforePrintReport5 |
You are reading help file online using chmlib.com
|