Sign in Join
FPDoc Onlineexperiment

TPrinter.NewPage procedure

Member of TPrinterpublicIn unit Printers

Creates a new page for the current document.

Declaration

pascal
procedure NewPage

Description

NewPage is a procedure used to create a new page for the document currently printing on the selected device.

NewPage checks the current class instance to see if it is a TPrinter descendant with an overridden DoNewPage method. If it has not been overridden, the following methods are called:

  • EndPage
  • BeginPage

When it has been overridden, the following actions are performed:

  • Call CheckPrinting to ensure that Printing is True.
  • Increment the value in PageNumber.
  • Call the NewPage method in Canvas when RawMode is False.
  • Call DoNewPage to execute the code for the class implementation.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.