how to retrieve info about print jobs

G

Guy Lateur

Hi all,

We have several printers in our company network. I would like to know if it
is possible to check the current print jobs/queues for each of them. That
way, if a user wants to print something (big), I could give her a hint as to
which printer would get the job done first. We're using win2k and xp, btw.

Any ideas? I'm pretty new to python, I'm afraid..

TIA,
g
 
S

Simon Brunning

We have several printers in our company network. I would like to know if it
is possible to check the current print jobs/queues for each of them. That
way, if a user wants to print something (big), I could give her a hint as to
which printer would get the job done first. We're using win2k and xp, btw..

You can probably do this with WMI. Ah yes, see
<http://www.c-sharpcorner.com/Code/2002/May/IntPrinterQWMI.asp>.

You can drive WMI from Python with Tim Golden's WMI module -
<http://tgolden.sc.sabren.com/python/wmi.html>.

Do let us know what you come up with!
 
R

Roger Upole

There are functions for managing printers and print
jobs in the win32print module from the Pywin32 package.

Roger
 
G

Guy Lateur

Hmm, this only seems to work for jobs that originate on the machine running
the script. I really need something that actually gathers the info from the
printers (net-based). Would that be possible at all?



"Simon Brunning" <[email protected]> schreef in bericht
We have several printers in our company network. I would like to know if
it
is possible to check the current print jobs/queues for each of them. That
way, if a user wants to print something (big), I could give her a hint as
to
which printer would get the job done first. We're using win2k and xp, btw.

You can probably do this with WMI. Ah yes, see
<http://www.c-sharpcorner.com/Code/2002/May/IntPrinterQWMI.asp>.

You can drive WMI from Python with Tim Golden's WMI module -
<http://tgolden.sc.sabren.com/python/wmi.html>.

Do let us know what you come up with!
 
G

guy lateur

Perhaps I should mention this: we have printers from HP, and they come with
a tool called JetDirect. This allows you to browse to it and check it's
status/stats. Maybe I should write something that automatically gathers the
info from the printer homepage. Would that be a good/easy way to go about
it?

Alternatively, I could send the info about a user's print jobs from their
individual pc to a central 'database', and then get it from there.

Just brainstorming out loud, here..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,144
Latest member
KetoBaseReviews
Top