[python-win32] Re: FetchProgress event problem

2005-12-24 Thread Roger Upole
Try adding pythoncom.PumpWaitingMessages() at the point where you're waiting for the fetch to complete. The events show up for me if I add this loop to the bottom of the test function: while 1: pythoncom.PumpWaitingMessages() time.sleep(0.1) Roger - Original M

[python-win32] Re: Adding Printers on Windows XP

2005-12-24 Thread Roger Upole
A null DEVMODE usually indicates a problem with the printer driver. Are you sure you have the correct driver installed on the local machine ? Also, what do you get back from GetPrinter for DriverName ? A couple of things you could try: Use win32print.DocumentProperties to retreive the printer'