Skip to main content
i am trying to create a custom button on product page to create a lable.

I have uploaded Jzebra zip file to the static resources and using following code on button:

{!REQUIRESCRIPT('/resource/ZebraPrint/qz-print/src/qz/PrintApplet.class')};

print();

  function print() {

        var applet = PrintApplet.class;

        if (applet != null) {

             applet.append("{!Product2.Id}");

            applet.print(); // send commands to printer

            // Send characters/raw commands to printer

            monitorPrinting();

            alert('printed')

        }

    }

If anyone can help.I am new to Javascript
1 answer
0/9000