Open GoogleCodeExporter opened 9 years ago
We encountered the same problem... Adding '\x00' to the end of string does
print the barcode - however, it also adds another '0' to the end of the
bar-code itself and to the barcode number itself altering it slightly ( for
example, a barcode of 123456 would become 1234560 )
Original comment by kremb...@gmail.com
on 24 Dec 2014 at 11:29
Hmm I didn't get that outcome. Bar codes print fine for me.
I comepletely replaced the code for the limited barcodes I needed.
I ended up with
def barcode(self,code,bc=constants.BARCODE_CODE39,w=1,h=72,pos=constants.BARCODE_TXT_BLW,font=None,align=constants.TXT_ALIGN_CT):
self._raw(align)
self._raw(''.join((constants.BARCODE_WIDTH,chr(w))))
self._raw(''.join((constants.BARCODE_HEIGHT,chr(h))))
self._raw(''.join((bc,code,'\x00')))
Original comment by zutes...@gmail.com
on 24 Dec 2014 at 1:52
Original issue reported on code.google.com by
zutes...@gmail.com
on 31 May 2013 at 4:13