Printing a VERY long label

I Ignacio Machin 3 years 5 months ago
5 0 0

Hi,
 
I'm using the code posted by Robin to print using a Zebra printer in an Android device, it does print great most of the time EXCEPT when the label is VERY large, in this case the printer (rw-420) indicate that is receiving data but it never prints nothing.
 
Is there any way to send the data either not using a bufferedWriter or in several batches?
 
I tried the Zebra setup utilities/ Open communicator with the printer and it does print it correctly.
 
Any suggestion?
 
Thanks,
Ignacio
 
This is the code I'm using:
 
 
BluetoothDevice hxm = BluetoothAdapter.DefaultAdapter.GetRemoteDevice (bt_printer);
UUID applicationUUID = UUID.FromString("00001101-0000-1000-8000-00805F9B34FB");
 
 
socket = hxm.CreateRfcommSocketToServiceRecord(applicationUUID);
socket.Connect();
inReader = new BufferedReader(new InputStreamReader(socket.InputStream));
outReader = new BufferedWriter(new OutputStreamWriter(socket.OutputStream));
outReader.Write(printingString);
 
 
outReader.Flush();
Thread.Sleep(5 * 1000);
var s = inReader.Ready();
inReader.Skip(0);
//close all
inReader.Close();
socket.Close();
outReader.Close();

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