direct output to printer
Gustavo Cordova
gcordova at hebmex.com
Fri Jun 7 17:44:38 EDT 2002
>
> Hi,
>
> 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")
>>> lpt.write(BarcodeDataString)
>>> lpt.close()
You can also use "prn:" instead of "lpt1:"
:-)
-gustavo
pd: Win's just MSDOS with icing on top. ;-)
More information about the Python-list
mailing list