The method :startDoc() implicitly calls :startPage(). Consequently, :startPage() should not be called at the beginning of a print job, unless a form feed is desired.
Method XbpPrinter():startPage() Foundation
Indicates the beginning of a page.
:startPage() --> lSuccess
This method returns a logical value. If a new page is started, :startPage() returns the value .T. (true). Otherwise, .F. (false) is returned.
The method :startPage() begins a new page within the current spool job. It can only be executed between the calls to :startDoc() and :endDoc().
After an application uses :endPage() to end a page, certain attributes of the print job can be changed before a new page is begun using method :startPage(). See :endPage() for more details.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.