How to write to printer in Windows?

Albert Wagner alwagner at tcac.net
Tue Apr 18 14:48:44 CEST 2000


How can I write(aLine) to a printer in Windows?  I tried this:

from win32pipe import popen
:
self.printer = popen('lpt1' 'w')
:
self.printer.write(aLine)

but get a general protection fault.  Any help will be greatly
appreciated.

-- 
Small is Beautiful



More information about the Python-list mailing list