Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how to retrieve info about print jobs

0 views
Skip to first unread message

Guy Lateur

unread,
Jun 2, 2005, 5:50:55 AM6/2/05
to
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


Simon Brunning

unread,
Jun 2, 2005, 8:06:21 AM6/2/05
to Guy Lateur, pytho...@python.org
On 6/2/05, Guy Lateur <guy.l...@b-b.be> wrote:
> 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!

--
Cheers,
Simon B,
si...@brunningonline.net,
http://www.brunningonline.net/simon/blog/

Roger Upole

unread,
Jun 2, 2005, 6:19:23 PM6/2/05
to
There are functions for managing printers and print
jobs in the win32print module from the Pywin32 package.

Roger

"Guy Lateur" <guy.l...@b-b.be> wrote in message news:3EAne.108100$xW2.6...@phobos.telenet-ops.be...


----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---

Guy Lateur

unread,
Jun 9, 2005, 11:18:57 AM6/9/05
to
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" <simon.b...@gmail.com> schreef in bericht
news:mailman.392.11177139...@python.org...

guy lateur

unread,
Jun 10, 2005, 2:06:41 PM6/10/05
to
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..


"Guy Lateur" <guy.l...@b-b.be> schreef in bericht
news:B5Zpe.115048$N46.6...@phobos.telenet-ops.be...

0 new messages