Equinox Online Help - Language Reference - A to Z

Home

NewPage

Applies to
SyntaxNewPage [ResetPageExpression]
Action[Statement] Forces a report page break and resets the page numbering.
ScopeOnly usable in report methods.
Notes

This statement forces a report page break and optionally resets the page numbering. If ResetPageExpression evaluates to True, the next page will start numbering again from one, otherwise it will continue to increment.

CategoryReports
See Also ChoosePrinter, ForceBreak, Print Setup, PrinterSettings, ReportField, ResetBlock
Example

The following example method, attached to the After Record event, ensures that a maximum of four customers are printed on each page.

NoCustomers += 1

if NoCustomers = 4 then
NewPage
NoCustomers
end if