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
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'