Hi, i have a ZEBRA ZQ520 printer and i'm trying to print some images.Following this answer i've set up the language to zpl but nothing gets printed.Here is my code,
Bitmap bitmap = BitmapFactory.decodeResource(context.getResources(), R.drawable.qr);
ZebraPrinter printer = ZebraPrinterFactory.getInstance(PrinterLanguage.ZPL, printerConnection);
String setLanguage = "! U1 setvar \"device.languages\" \"zpl\"";
printerConnection.write (setLanguage.getBytes()); printer.printImage(ZebraImageFactory.getImage(bitmap), 0, 0, 300, 300, false);
When i don't set the language to zpl a long String of hexadecimal values gets printed.Any hints on this?
Tasos.
ZEBRA ZQ520 not printing images |
0 Replies