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.
--
Dr. rer. nat. Uwe Schmitt python, php, c, c++, codes, tips, tutorials at
uwe.s...@procoders.net http://www.procoders.net
there is a raw print function in win32all, but i haven't used that. for the
barcode-printer i used, i sent a bitmap with the barcode. that way you can
print the same barcode on paper or preview on the screen (i used wxPython).
there are some free barcode fonts around. i use this one:
http://www.squaregear.net/fonts/
chris
--
Chris <clie...@gmx.net>
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. ;-)