Announcement

Collapse
No announcement yet.

Is the printer on-line and ready?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is the printer on-line and ready?

    I'm writing a program that produces some heavy-duty print-out's.

    Currently, to save paper and print media, I am printing to CutePDF and bringing up the .PDF file to check output.

    However, sometimes, I miss my mark and try to print to a physical printer when it's turned off. Not what I'm expecting.

    Is there a generic way of checking a printers status as to whether it's on-line and paper ready, or is this question printer specific?
    There are no atheists in a fox hole or the morning of a math test.
    If my flag offends you, I'll help you pack.

  • #2
    OpenPrinter
    GetPrinter
    Query status member of PRINTER_INFO_2

    Yes, your demo in Source Code Forum of same will be appreciated.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      FWIW, this source code posting....



      .. has all the literals typed for you if you want to make a demo function which looks something like...

      Code:
      FUNCTION getPRinterStatus (PrinterName AS STRING) AS STRING
      
      END FUNCTION
      
      ...
         PrinterName = (Get a printername, using PrintDLG() or PRINTER$)
         MSGBOX GetPrinterStatus (Printername)
      Michael Mattias
      Tal Systems (retired)
      Port Washington WI USA
      [email protected]
      http://www.talsystems.com

      Comment

      Working...
      X