CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2001
    Posts
    401

    Printer Status Out of paper/paper jam

    I want to be able to get the infromationf from the printer when its out of paper and if possible even when there is a paper jam.

    I have used enumjobs to get al the jobs, and then used job infor 2 and its number of pages variable to know how many pages are there.

    But I also want to know when the print er is just stuck as its out of paper or if there is a paper jam.

    My application is just monitoring the printer by the way, I might not be starting the prints every time.

    Any suggestions, links are very much appreciated, and any sample code would be heavenly...

    Thanks!
    Pauli
    Pauli

  2. #2
    Join Date
    Nov 2001
    Posts
    401

    ...

    Anybody!


    Please help.


    Pauli

  3. #3
    Join Date
    Sep 2002
    Location
    Maryland - Fear The Turtle!
    Posts
    7,537
    EnumPrinters(...)
    PRINTER_INFO_2 contains a status.

    You can also look at

    FindFirstPrinterChangeNotification(...)

    For notification of status changes PRINTER_NOTIFY_INFO_DATA should be able to also key off status.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured