OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
Indicating Further Pages

Printout objects have one last duty: to indicate to the printer object whether there are printable pages beyond a given page.

The HasPage member function takes a page number as a parameter and returns a Boolean value indicating whether further pages exist. By default, HasPage returns true for the first page only. In order to print multiple pages, your printout object needs to override HasPage to return true if the document has more pages to print and false if the parameter passed is the last page.

Be sure that HasPage returns false at some point. If HasPage always returns true, printing goes into an endless loop.

See Also