win32print.Enumjobs

Steve Holden sholden at holdenweb.com
Wed Nov 7 10:11:19 EST 2001


"Wolfgang Strobl" <Wolfgang.Strobl at gmd.de> wrote ...
> "T. C. Huang" <a00tch00 at nchc.gov.tw> schrieb:
>
> >Hi,
> >
> >   How to use win32print.EnumJobs() function? The documention has too
> >little information to
> >be useful.
>
> Hu?
>
> I've never used this function, but it took me only a few seconds to
> figure this out from the win32print docs.
>
> >>> zps=win32print.OpenPrinter("\\\\pricos\\zps")
> >>> win32print.EnumJobs(zps, 0,
1,win32print.JOB_INFO_1)[0]['pPrinterName']
> 'zps'

Neither have I, and it was but the work of a second to discover I don't HAVE
the function. I assume you are running with something more recent than 2.0?

>>> pr=win32print.OpenPrinter("\\\\ltree1\\epson")
>>> win32print.EnumJobs(pr, 0, 1,win32print.JOB_INFO_1)[0]['pPrinterName']
Traceback (innermost last):
  File "<interactive input>", line 1, in ?
AttributeError: EnumJobs

out-of-date-ly y'rs  - steve
--
http://www.holdenweb.com/








More information about the Python-list mailing list