Contents - Index - Previous - Next


OnPrintPageContinued event



Applies to
TProfGrid component

Declaration
property OnPrintPageContinued: TProfGridPrintEvent;

Description

Occurs when the grid starts printing on the same print page (i.e. when the ContinuePrint or EndPrint method is called).

Tip:  The event may be used for changing the PrintFooter property (e.g. for printing page numbers in the footer of each page).


Example

The following event handler puts page number in the footer of the sheet.

procedure TForm1.ProfGrid2PrintPageContinued(Sender: TProfGrid; APage: Integer);
begin
  // This grid continues printing on the same print page.
  // If we want to put page numbers in the *footer* of sheets,
  // we need to assign the footer in this event.
  Sender.PrintFooter.Lines.Text := 'Page ' + IntToStr(APage);
end;