KR403 Status from Electron App

// Expert user has replied.
J John Colagioia 2 years 11 months ago
75 4 0

I'm currently working on an Electron app for a Kiosk using the KR403 printer.  We have received a requirement to display when the printer is unavailable, there's a paper jam, and paper is low/out.
 
Looking at some options, Browser Print seemed like the best bet.
 
After including it on the main page (for testing) with a script tag, I'm able to call BrowserPrint.getLocalDevices() and find the printer, including that it's connected via driver and so forth.  However, if I then call (following the demo code's checkPrinterStatus()) printer.sendThenRead("~HQES", ...) with that object, the response is an empty string.
 
Any thoughts as to where the disconnect is between the first call and the second?
 
Thanks!

Please register or login to post a reply

4 Replies

M Manuel Caicedo-Rivera

John,

Were you able to print something? have you tried to do the same(a test with ~HQES) with standard PC and Zebra Setup utilities, so we can verify that the printer is not the issue? What is the firmware version of the printer?

J John Colagioia

Printing works consistently.  The printer properties About page refers to the "Windows driver for ZDesigner KR403, Version 5.1.16.6447."

I don't quite see how to run the suggested test.  The closest I can find is the Zebra OPOS Test Application, where I can put ~HQES into the "Print Data" box, but none of the various Print buttons appear to accomplish anything.

The test application does show "Paper Near End Warning" (the sensor is hanging off the end of the table), also, so the printer is at least returning that information there.

J Jendrick Harts

Hi,
Do you have an update on the result of this project. Have you been able to print on KR402 from an Electron application?

M Manuel Caicedo-Rivera

Hi John,

Zebra has not tested KR403 against Browser Print. I will recommend internally to include this printer in our test routines for the upcoming releases. However, the usual technical questions to start to debug the issue would be among others; Did you check if the printer has installed the latest version of the printer? If so, what type of browser are you using, and what OS is your computer based?

Thanks, 
MC

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