Android barcode printing with Bixolon SPP-R200II -


i need print barcode in mobile bluetooth printer brand “bixolon” model “spp-r200ii” android application. using bixolon sdk android work samsung sii not motorola moto g g2. decided not using sdk, instead sending commands printer based on “unified command manual” bixolon. using these lines:

string codigo=”1234567894”; int gs=29; int k=107; int m=5; byte[] codigobytes=codigo.getbytes(); outputstream.write((byte)gs); outputstream.write((byte)k); outputstream.write((byte)m); outputstream.write(codigobytes); 

based on manual command should print “itf” barcode not. connection printer stablished; can print text not barcodes command. has had better luck in printing barcodes method , printer? appreciate , comments.

you have missed 1 important part while printing bar codes. should end nul sign. add this:

string nul = new string(new byte [] {0x00}); outputstream.write(nul.getbytes()); 

Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -