Megosztás a következőn keresztül:


SYS(13) - Printer Status

Included for backward compatibility. Returns the status of the printer.

SYS(13)

Return Values

Character

Remarks

OFFLINE is returned if the printer isn't ready. READY is returned if the printer is ready.

If the printer is connected to a COM port, SYS(13) returns READY if the printer returns Clear To Send Data or Data Set Ready.

If the printer is connected to a parallel port, SYS(13) returns OFFLINE if the printer returns Out of Paper, I/O Error, Time Out, Printer Busy, or Printer Not Selected.

Example

IF SYS(13) = 'OFFLINE'
   WAIT WINDOW 'Printer is offline'
ENDIF

See Also

PRINTSTATUS( ) | SET PRINTER | SYS( ) Functions Overview