ZPL with Zebra Browser Print printing multiple labels instead of 1
06:56 01 Feb 2026

I'm using ZPL with Zebra Browser print and Zebra ZD230T printer, everything is configured, I've got v10 drivers and I'm printing labels within a React application.

Below is the function I'm calling to print the label with the barcode and catalog item name and number, but what happens is that the first time it gets called through the web app it prints 1 label (which is good), second call prints 1 label and a few empty labels and third call prints 1 label and continues printing empty labels until the status button on the zebra printer starts blinking red (10-15 empty labels).

I've already calibrated the printer so that's not the problem and just for information my laptop and printer are connected with an USB cable.

Has anyone had the same issue?

enter image description hereenter image description here

const printBarcodeLabel = () => {
        const catalogItem = catalogItems?.find(ci => ci.id === catalogItemId);

        // Provjeri je li BrowserPrint dostupan
        if (!(window as any).BrowserPrint) {
            messageApi.error("Zebra Browser Print nije dostupan. Provjerite je li aplikacija instalirana i pokrenuta.");
            console.error("BrowserPrint object not found on window");
            return;
        }

        const zpl = `
            ^XA
            ^MMT
            ^PW406
            ^LL203
            ^FO20,10^BY2^BCN,60,N,N,N
            ^FD${catalogItem?.barCode}^FS
            ^FO20,80^A0N,18,18^FB366,1,0,C^FD${catalogItem?.barCode}^FS
            ^FO20,105^A0N,20,20^FB366,1,0,C^FD${catalogItem?.name || ''}^FS
            ^PQ1,0,1,Y
            ^XZ`.trim();

        (window as any).BrowserPrint.getDefaultDevice(
            'printer',
            (device: any) => {
                if (!device) {
                    messageApi.error("Nije pronađen default printer. Provjerite postavke u Zebra Browser Print aplikaciji.");
                    return;
                }

                device.send(zpl, 
                    () => {}, 
                    (err: any) => {
                        console.error('Print error', err);
                        messageApi.error("Greška pri ispisu. Provjerite je li printer uključen i dostupan.");
                    }
                );
            },
            (err: any) => {
                console.error('Device error', err);
                messageApi.error("Provjerite imate li upaljen Zebra Browser Print i postavljen default printer.");
            }
        );
    };
reactjs zebra-printers zpl zpl-ii zebra