How to write to printer in Windows?

Albert Wagner alwagner at
Tue Apr 18 07:15:43 EDT 2000

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

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

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

Small is Beautiful

More information about the Python-list mailing list