Yes, the ZQ320 printers, which are one of the Link-OS printer models, are supported by the Browser Print. All Link-OS printer models are supported by the Browser Print.
Are you using the continuous media, i.e., the receipt type of media? You can manually set the label_lenght on the printer with the following SGD command.
### Set the label length to 400 dots for example
! U1 setvar "zpl.label_length" "400"
Or, you can specify the label length in the ZPL of the label to be printed with the ^LL command. Here is the example of specifying the label length as 400 dots.
The ~HQES is a ZPL command for retrieving the printer status. It's most likely sent to the printer when you try to get the printer status from the Browser Print API after each receipt. Since the printer's control languages is already changed to the line_print, the printer treats the ~HQES as a text string and prints it as it is. This is why you see the ~HQES is printed between the receipts. To prevent the ~HQES from being printed on the receipt, please set the device.languages back to ZPL before calling the API for the printer's status.
Thanks for answring, I'm trying to print in line mode a 20 lines receipt, but, i need to send 3 ~ 4 times, for success print (printer prints 4 same texts)
7 Replies
Yes, the ZQ320 printers, which are one of the Link-OS printer models, are supported by the Browser Print. All Link-OS printer models are supported by the Browser Print.
Please download and install the Download Browser Print For OSX on your MacBook and connect the printer to the MacBook via USB, or put the printer on the same Wi-Fi network. Then run the sample script from the Download Browser Print JavaScript Library. See the Download Browser Print User Guide for more info.
Are you using the continuous media, i.e., the receipt type of media? You can manually set the label_lenght on the printer with the following SGD command.
Or, you can specify the label length in the ZPL of the label to be printed with the ^LL command. Here is the example of specifying the label length as 400 dots.
The ~HQES is a ZPL command for retrieving the printer status. It's most likely sent to the printer when you try to get the printer status from the Browser Print API after each receipt. Since the printer's control languages is already changed to the line_print, the printer treats the ~HQES as a text string and prints it as it is. This is why you see the ~HQES is printed between the receipts. To prevent the ~HQES from being printed on the receipt, please set the device.languages back to ZPL before calling the API for the printer's status.
Thankyou so much, i finally got this work, now i have a little problem, every label printed with 380mm height.
How can i fix this ?
Thanks for answring, I'm trying to print in line mode a 20 lines receipt, but, i need to send 3 ~ 4 times, for success print (printer prints 4 same texts)
Additional is printing ~HQES
Image: https://ibb.co/rssz3Cc
I'm using following commands before send print:
browserPrint.write('! U1 setvar "device.languages" "line_print"');
browserPrint.print(`----------------------------------------
COCINA
----------------------------------------
FECHA: 17/mar./2021
MESERO: Gustavo XXXXXX
FOLIO: 37479
HORA: 02:10 PM
C. CONSUMO:TANARAH
MESA: B9 CUENTA: 1
SOCIO: 1 - Publico en General
----------------------------------------
***UNICO TIEMPO***
1 POLLO KARAAGE BOTANA
----------------------------------------`)
thank you so much! i prevent ~HQES print backing to "hybrid_xml_zpl" then, set line_print .
is There a way to print latin characters in line_print mode?
I'm trying to print "Tardío" for example, but is printing: "Tardà o"