Announcement

Collapse
No announcement yet.

Printer out of paper ?

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

  • Printer out of paper ?

    Hi,

    If my printer is out of paper (USB or network attached) my printspooler still says 'READY'. After the printerdriver gave back the error (... no paper ...) the printque still sayes 'READY'.

    No I need a direct test, if a printer is ready or has a problem.
    Does someone now how to do this on Win2000/XP ff. ?
    As I understand the customers need a monitoring programm that tell them this printer is not ready ... but how to do.

    They told me, that 'Delphi-programmes' can get this info, but not how ...
    and I do not know if it is true.
    Regards,
    Hubert

    ------------------------------------
    http://familie-brandel.de/index_e.html

  • #2
    GetJob() Windows function. The returned JOB_INFO_n structure includes status which can include printer out of paper.

    That's for an existing job.

    If it's just a check of the printer BEFORE you start printing to it, let's see... hmm, GetPrinter() looks good: that, too, has a status indicator which includes out of paper condition (among other conditions)

    (I seem to recall someone creating a function to return a literal for the printer status... it did all the bit-testing which while not difficult is surely tedious. Try a search of source code forum for "getPrinter" and/or "GetJob" in the full text).

    MCM
    Last edited by Michael Mattias; 31 Jan 2008, 08:09 AM.
    Michael Mattias
    Tal Systems (retired)
    Port Washington WI USA
    [email protected]
    http://www.talsystems.com

    Comment


    • #3
      Thanks,

      I found some code on the search with GetPrinter ... will try it and GetJob too...
      Regards,
      Hubert

      ------------------------------------
      http://familie-brandel.de/index_e.html

      Comment

      Working...
      X