With the correct DPI and the correct model printer you can adjust the size of the label format to fit the paper size, so you can a have a label format for a 200 DPI, another label format for a 300 DPI, and one more for 600 DPI. You can have these as static versions or you can develop an algorithm to adjust them in running time. With the printer model you easily can identify the maximum print width, so if this printer is a 2", 3", 4" or 6" width.
How can you identify the DPI of the printer, and the model of the printer? Ok, there is a simple ZPL command that allows you to define what type of printer and dpi you have. "~HI". More information in how to use this command. Please, go the link below pag. 196.
You could also use a SGD command like the "head.resolution.in_dpi", but it only works for Link-OS printers. Page 717, in the ZPL programming guide.
sendThenRead(dataToSend, finishedCallback, errorCallbackopt)
Send data to the device, then read a response back
Name Type Attributes Description
string The data to be sent to the device
function The function that is called when reading is completed.
function <optional> The function that is called when an error occurs while sending or reading data.
- Here an example with the command "~HQES":
var that = this;
var statuses = new Array();
var ok = false;
var is_error = text.charAt(70);
var media = text.charAt(88);
var head = text.charAt(87);
var pause = text.charAt(84);
// check each flag that prevents printing
if (is_error == '0')
ok = true;
statuses.push("Ready to Print");
if (media == '1')
if (media == '2')
if (media == '4')
statuses.push("Media Door Open");
if (media == '8')
if (head == '1')
if (head == '2')
if (head == '4')
if (head == '8')
if (pause == '1')
if ((!ok) && (statuses.Count == 0))
statuses.push("Error: Unknown Error");
many thanks for your exhaustive response.
Maybe the ZEBRA TLP 2844 is not supported for the browser printing ?
Yes, you are right, Browser Print does not support TLP 2844 printer. This printer is already discontinued and it is not supported any more. For more information about this printer, please, review the link below.
The replacement printer for the TLP 2844 is the GC420 printer.
If you want to know what printers are supported actually with Browser Print, please, review the link below. It is possible that in future releases, we will add more printers to the supported list.