In Zebra RW420 , line print mode not working in android -



In Zebra RW420 , line print mode not working in android -

i using zebra rw420 printer printing bill android mobile image.

when trying print label working fine. when seek print in line-print mode giving blank print. code using

string cpclconfiglabel = "! u1 setvar {0} {1}, \"device.languages\", \"line_print\"\r\n" + "!u1 setlp 5 2 46\r\n" + "aurora's fabric shop\r\n" + "!u1 setlp 5 2 24\r\n" + "123 castle drive"; seek { configlabel = cpclconfiglabel.getbytes("us-ascii"); } grab (unsupportedencodingexception e) { // todo auto-generated grab block e.printstacktrace(); } printerconnection.write(configlabel);

i using developer demo zebra sdk,

can tell me wrong code?

the sdk not designed utilize printers in line mode. upon detecting printer in line mode set in zpl mode.

the reason sdk set allow status checking, template printing, , other functions not work when printer in line mode.

changing printer line mode trying work printing portion, if seek utilize status commands or of other sdk features start exceptions.

to print receipts , invoices variable length in zpl can following:

set printer media mode continuous.

create template receipt header, line, , footer.

2a. each of templates fixed height set "^ll" command each template.

2b. set orientation of template inverted "^poi"

2b. each of templates have variables can filled in

split runtime info , recall formats filling in data.

you utilize templates instead of printing each line

header

line

line

...

line

footer

android zebra-printers barcode-printing

Comments

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -