Share via


EJECT PAGE Command

Sends a conditional page advance to the printer.

EJECT PAGE

Remarks

Use EJECT PAGE to advance streaming output. The advance depends on the value of _PADVANCE and if an ON PAGE routine is in effect.

If _PADVANCE is set to FORMFEED and an ON PAGE routine isn't in effect, EJECT PAGE performs the following:

  • Sends a formfeed to the printer if the printer is online.
  • Sends linefeeds, as determined by the system memory variables _PLENGTH and _PLINENO, to the screen or to an alternate file or to both.
  • Increments _PAGENO by 1.
  • Sets _PLINENO to 0.
  • If the system memory variable _PADVANCE is set to LINEFEEDS, and if an ON PAGE routine is in effect and _PLINENO is less than the page line number specified in the ON PAGE routine, EJECT PAGE sends to the printer, to the main Visual FoxPro window, or to an alternate file or to both, as many linefeeds as needed to advance to the top of the next page.

If an ON PAGE routine is not in effect, or if _PADVANCE is set to LINEFEEDS and _PLINENO is greater than the page line number specified with ON PAGE, EJECT PAGE does the following:

  • Sends linefeeds, as determined by the system memory variables _PLENGTH and _PLINENO, to the printer, the main Visual FoxPro window, or to the alternate file or to both.
  • Increments _PAGENO by 1.
  • Sets _PLINENO to 0.

See Also

EJECT | ON PAGE | SET ALTERNATE | SET DEVICE | SET PRINTER | PCOL( ) | PROW( ) | System Variables Overview