XPRINT SET PAGES statement

Purpose | Sets the XPRINT page number limits for this print job.
Syntax | XPRINT SET PAGES FromPage&, ToPage&

Remarks

You may elect to limit a particular print job to a subset of the total number of pages. This can be accomplished under program control by executing XPRINT SET PAGES, or the user can make the appropriate choice in the Print Dialog which is displayed when XPRINT ATTACH is executed with the CHOOSE option. When the pages are limited in this way, PowerBASIC handles all the details of print suppression for you.

Normally, XPRINT pages are numbered from one. The parameter FromPage& specifies the first page of the full report which will be printed, while ToPage& specifies the last page.

If XPRINT SET PAGES is executed without a host printer attached, an error 57 is generated.

See also | XPRINT ATTACH, XPRINT GET PAGES, XPRINT SET COPIES