Checking status of KR403 with winspool in Java

// Expert user has replied.
L Lukasz Byjos 3 years 7 months ago
7 1 0

Hi. I have problem with checking status of zebra KR403 in Java. I'm trying to use winspool from jna but still geting status 0 for PRINTER_INFO_2.
 
    public static Winspool2.PRINTER_INFO_2 getPrinterInfo2(String printerName) {         IntByReference pcbNeeded = new IntByReference();         IntByReference pcReturned = new IntByReference();         HANDLEByReference pHandle = new HANDLEByReference();           Winspool2.INSTANCE.OpenPrinter(printerName, pHandle, null);           Winspool2.INSTANCE.GetPrinter(pHandle.getValue(),                 2,                 null,                 0,                 pcbNeeded);         if (pcbNeeded.getValue()

Please Register or Login to post a reply

1 Replies

G Gregory Pawlik

Hi Lukasz,

Have you looked into the Link-OS™ Multiplatform SDK | Zebra​ ?
It offers JAVA libraries that can get status information from Zebra printers such as  the KR403.

Hope this helps,

Greg

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