Rerouting Print Jobs??
-
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.
-
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.
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'
-
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.
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.
-
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'
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.
-
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.
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.
-
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.
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.