Not able to print using

S Sampath Herga 1 year ago
33 0 0

I am trying to use the Android SDK to print an image on a ZD230 printer. I am only getting blank sheets. The code I am using is below:

 

Bitmap myBitmap = Media.getBitmap(getContentResolver(), uri)
 
Connection connection = getZebraPrinterConn();
connection.open();

//connection.write("! U1 setvar \"device.languages\" \"zpl\"\n".getBytes());
ZebraPrinter printer = ZebraPrinterFactory.getInstance(connection);

printer.printImage(new ZebraImageAndroid(bitmap), 0, 0, -1, -1, false);

The sheet moves forward but there is no image. Text works fine. 

 

Please help with how to proceed in fixing this issue.

Thanks.

CONTACT
Can’t find what you’re looking for?