direct output to printer
gcordova at hebmex.com
Fri Jun 7 23:44:38 CEST 2002
> I'd like to print barcodes with a special barcode printer.
> Therefore I have to send raw ASCII data to the printer.
> How can I do this using Python under Windows ???
> Greetings, Uwe.
Same way you'd do it in MSDOS
(if you have it connected to a parallel port):
>>> lpt = open("lpt1:", "w")
You can also use "prn:" instead of "lpt1:"
pd: Win's just MSDOS with icing on top. ;-)
More information about the Python-list