Printing to a printer under WinXP

Mervyn Yeo bleah at
Wed Aug 20 13:47:27 CEST 2003

I've tried

p = open('LPT1:','wb')

and it doesn't work. I've also tried win32print's WritePrinter and it
doesn't work either. Does anyone know of an easy way to print strings and
such from within a python script to windows' printers?

More information about the Python-list mailing list