Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Rerouting Print Jobs??

Rerouting Print Jobs??

Scheduled Pinned Locked Moved IT & Infrastructure
helpquestioncareer
6 Posts 3 Posters 3 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alexvw
    wrote on last edited by
    #1

    Hi, I spent a while reading a number threads about finding out each printer's status prior sending a job to it, and so far I found nothing I can use. I thought I ask if it was possible to re-route print jobs that are stuck on an "unavailable" printer to another device without having to attemp to delete those jobs and re-issue them to the next printer instead. Does anybody know if this can be achieved via then Win32_PrintJob class? Thank you for your time, interest and help. Best regards, Alex.

    G L 2 Replies Last reply
    0
    • A alexvw

      Hi, I spent a while reading a number threads about finding out each printer's status prior sending a job to it, and so far I found nothing I can use. I thought I ask if it was possible to re-route print jobs that are stuck on an "unavailable" printer to another device without having to attemp to delete those jobs and re-issue them to the next printer instead. Does anybody know if this can be achieved via then Win32_PrintJob class? Thank you for your time, interest and help. Best regards, Alex.

      G Offline
      G Offline
      Garth J Lancaster
      wrote on last edited by
      #2

      alexvw wrote:

      I thought I ask if it was possible to re-route print jobs that are stuck on an "unavailable" printer to another device without having to attemp to delete those jobs and re-issue them to the next printer instead. Does anybody know if this can be achieved via then Win32_PrintJob class?

      From a deep memory of fiddling with this before, no, once its at the printer thats it .. but you can solve the issue using a different tactic - write a print driver that captures local output, then checks which printer(s) are available, and routes it to the 'best' one, where 'best' is something you'll have to qualify 'g'

      A 1 Reply Last reply
      0
      • A alexvw

        Hi, I spent a while reading a number threads about finding out each printer's status prior sending a job to it, and so far I found nothing I can use. I thought I ask if it was possible to re-route print jobs that are stuck on an "unavailable" printer to another device without having to attemp to delete those jobs and re-issue them to the next printer instead. Does anybody know if this can be achieved via then Win32_PrintJob class? Thank you for your time, interest and help. Best regards, Alex.

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #3

        Different printers (may) have different characteristics (such as margins and dpi), and the characteristics are needed while the print pages are being generated, so Windows must think one should not have that option. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
        All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.


        A 1 Reply Last reply
        0
        • G Garth J Lancaster

          alexvw wrote:

          I thought I ask if it was possible to re-route print jobs that are stuck on an "unavailable" printer to another device without having to attemp to delete those jobs and re-issue them to the next printer instead. Does anybody know if this can be achieved via then Win32_PrintJob class?

          From a deep memory of fiddling with this before, no, once its at the printer thats it .. but you can solve the issue using a different tactic - write a print driver that captures local output, then checks which printer(s) are available, and routes it to the 'best' one, where 'best' is something you'll have to qualify 'g'

          A Offline
          A Offline
          alexvw
          wrote on last edited by
          #4

          Hi Garth, I did write a class that uses Win32_Printer, and Win32_PrintJob to not only identify all registered printers, their status, and their assigned jobs, but also to determine the "best" next choise based on the total number of pages that are yet to be printed as well as the availability of each device. The problem is that accoding to the Win32_Printer class all devices were "Ready" even though one of them became unplugged. This little accident made me noticed that this class would not report such "event" and still indicate that printer's status as "Ready", and therefore keep it available untill the spool times out. So I thought of looking for a way to "ping" each printer before assigning more jobs to them, and/or re-routing failed jobs to another device. By the way all printers are from the same manufacturer and family series. Could you offer your insight on this details? Again, thank you for your time.

          1 Reply Last reply
          0
          • L Luc Pattyn

            Different printers (may) have different characteristics (such as margins and dpi), and the characteristics are needed while the print pages are being generated, so Windows must think one should not have that option. :)

            Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


            I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
            All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.


            A Offline
            A Offline
            alexvw
            wrote on last edited by
            #5

            Hi Luc, In this particular scenareo, all printers are from the same manufacturer and family series, but I see your point. Do you know if it is possible to interface with a printer's controller? so that we could gain access to all of its functions? I guess I would have to contact the manufactures I requiere and ask them for this, but something tells me that either I'll get "sorry, no can do" or a "sure, that's $$$$$$ LOL (evil kind laught)". Any advice? Thanks for your time.

            L 1 Reply Last reply
            0
            • A alexvw

              Hi Luc, In this particular scenareo, all printers are from the same manufacturer and family series, but I see your point. Do you know if it is possible to interface with a printer's controller? so that we could gain access to all of its functions? I guess I would have to contact the manufactures I requiere and ask them for this, but something tells me that either I'll get "sorry, no can do" or a "sure, that's $$$$$$ LOL (evil kind laught)". Any advice? Thanks for your time.

              L Offline
              L Offline
              Luc Pattyn
              wrote on last edited by
              #6

              I'm no expert in keeping a shared queue for similar printers and dispatching print jobs to the first available printer, however a simple Google action immediately gave many third-party stuff including this[^] one. And about Microsoft it turned up this[^] note. :)

              Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


              I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
              All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.


              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups