I'm using the android SDK (ZSDK_ANDROID_API.jar)
I've a dynamically generated CPCL code. When this code is small (30 lines approx) it gets printed without any issue, but when the CPCL code gets larger the printer starts printing but before finishing the label, it stops printing without finishing the label. No error is reported by the printer nor the SDK.
In the attached image you can see the first label (OK) and the second label (NOT FINISHED)
test-simple.cpcl is an example code I'm using.
Here is the java code I'm using:
String cpclData = "CPCL CODE HERE";
// Instantiate insecure connection for given Bluetooth MAC Address.
Connection thePrinterConn = new BluetoothConnectionInsecure(theBtMacAddress);
// Initialize
Looper.prepare();
// Open the connection - physical connection is established here.
thePrinterConn.open();
// Send the data to printer as a byte array.
thePrinterConn.write(cpclData.getBytes());
// Make sure the data got to the printer before closing the connection
Thread.sleep(500);
// Close the insecure connection to release resources.
thePrinterConn.close();
Looper.myLooper().quit();
Any advice would be really appreciated
MARTIN
cpcl text limited |
2 Replies
Hi Martin, Can you also attach a copy of the longer label that is not printing fully. I only see the shorter label in your zip file.
Thanks for the reply
Attached a long label
Thanks for any advice you can give me