Re: [python-win32] Re: StartDoc failed

2005-02-22 Thread Luc Saffre
On 22.02.2005 07:06, Roger Upole wrote: PRINTER_ENUM_DEFAULT only works on Windows 95/98. win32print.OpenPrinter(win32print.GetDefaultPrinter()) should get a handle that you can pass to GetPrinter. Roger, thank you again for your reply. Your hints work, except that element 18 doesn't seem to be th

[python-win32] Re: StartDoc failed

2005-02-21 Thread Roger Upole
PROTECTED]> Cc: Sent: Monday, February 21, 2005 11:43 PM Subject: Re: [python-win32] Re: StartDoc failed On 22.02.2005 01:14, Roger Upole wrote: You should be able to use win32print.GetPrinter to check the state. Either the status or the attributes (or both) should change when it's not av

Re: [python-win32] Re: StartDoc failed

2005-02-21 Thread Luc Saffre
On 22.02.2005 01:14, Roger Upole wrote: You should be able to use win32print.GetPrinter to check the state. Either the status or the attributes (or both) should change when it's not available. (Atributes are element 13 of the returned tuple, Status is element 18) Roger, thanks for the hint. I saw

[python-win32] Re: StartDoc failed

2005-02-21 Thread Roger Upole
You should be able to use win32print.GetPrinter to check the state. Either the status or the attributes (or both) should change when it's not available. (Atributes are element 13 of the returned tuple, Status is element 18) hth Roger - Original Message - From: "Luc Saffre" <[EMA