TPrinter.NewPage procedure
Creates a new page for the current document.
Declaration
procedure NewPageDescription
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.
