Re: [python-win32] problem getting printer status in Windows

2009-04-21 Thread Tim Golden
Alec Bennett wrote: I'm having trouble getting the printer status in Windows. Ideally I'd like to get the info contained in the Status column when you open a printer from the Windows control panel -- printers. Generally, altho' not always, questions like this have an answer which starts with

[python-win32] problem getting printer status in Windows

2009-04-21 Thread Roger Upole
Just to clarify, the code is asking for job status rather than printer status. According to the docs: http://msdn.microsoft.com/en-us/library/dd145019(VS.85).aspx the status can be returned either as a string in the pStatus member, or as an int in Status. You'll probably need to change the

[python-win32] problem getting printer status in Windows

2009-04-20 Thread Alec Bennett
I'm having trouble getting the printer status in Windows. Ideally I'd like to get the info contained in the Status column when you open a printer from the Windows control panel -- printers. I've been using the routine pasted at the end of this email, which works for some printers, but not