[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
    GetPrinter()

         Gets printer state

    Syntax:

         GetPrinter( [nPrinter] ) -> nStatus

         nPrinter : Printer Number. 0 = LPT1, 1 = LPT2...
                    Defect verify the printer 0

    Description:

         Determines if the printer is ready, out of paper, if is off or there
         is no printer.

    Return:

         A number indicating the printer state over the next list.


          0 READY       ->  Ready
          1 BUSY        ->  Not ready
          2 PAPER       ->  Out of paper
          3 NOTHERE     ->  There's no printer
          4 LAN         ->  Remote printer
          5 ISOFF       ->  Not ready

    Example:

         nStatus := GetPrinter()
         If nStatus == 0 .Or. nStatus == 4
           Warning ( "Printer Ready" )
         EndIf

This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson