Domanda

I am having trouble printing anything using the Zebra KR403 Printer using my Android app.

To debug I try to print the configuration using the below command:

String ZPLCommand = new String();
        ZPLCommand += "^XA"; // Start command
    ZPLCommand += "^MN" + "k"; 
    ZPLCommand += "~WC";
    ZPLCommand += "^AF^FDTESTLINE^FS";
    ZPLCommand += "^XZ"; // End command

    DiscoveredPrinterUsb discoveredPrinterUsb;
    Connection conn = discoveredPrinterUsb.getConnection();
    conn.open();

    ZebraPrinter printer = ZebraPrinterFactory.getInstance(conn);
    printer = ZebraPrinterFactory.getInstance(conn);
    printer.sendCommand(ZPLCommand);
    conn.close();

The printer is able to print about 80% of the configuration (till Calibration Field) and then it stops...I see a blinking red status LED.

I have tried researching the same without any success. Any help will be highly appreciated.

È stato utile?

Soluzione

The ~WC is an immediate command which prints the config label, not a calibration command. Try sending that by itself and then sending the rest of the label.

Did you mean to send a ~JC to calibrate? Also, I don't know if you want to calibrate in the middle of a format, that's usually done only once and then the printer doesn't need to be calibrated again

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top