Topic
  • 2 replies
  • Latest Post - ‏2015-02-02T01:57:54Z by abbylee
SystemAdmin
SystemAdmin
4447 Posts

Pinned topic printing label using Zebra printer (barcode printer)

‏2008-09-24T08:32:54Z |
Hi all,

I am facing one problem while printing label using Zebra printer.I am sending this zpl command to zebra printer's output stream to print the label but blank label is printed with this command.
here is my code to print the label.
zplcmd="^XA~TA000~JSN^LT0^MNW^MTT^PON^PMN^LH0,0^JMA^PR2,2^MD10^JUS^LRN^CI0^XZ\n"
+"^XA\n"
+"^MMT\n"
+"^LL0300\n"
+"^PW600\n"
+"^LS0\n"
+"^FT60,42^A0N,42,40^FH\\^FD"Name"^FS\n"
+"^FT60,132^A0N,42,40^FH\\^FD"Age"^FS\n"
+"^BY1,3,40^FT60,220^BCN,,Y,N\n"
+"^FD>"barcode"^FS\n"
+"^PQ1,0,1,Y^XZ\n";
S = new Socket(Ip, port);
DataOutputStream out = new DataOutputStream(S.getOutputStream());
out.writeBytes(zplcmd);
can anyone tell me why the blank label is printing ??

and what is wrong with this ZPL script
  • Blithe
    Blithe
    1 Post

    Re: printing label using Zebra printer (barcode printer)

    ‏2014-06-27T03:13:16Z  

    The Java barcode generator software empowers you to design and print barcode labels as well as stickers in different sizes according to your need.

  • abbylee
    abbylee
    1 Post

    Re: printing label using Zebra printer (barcode printer)

    ‏2015-02-02T01:57:54Z  

    Your can try Google Zxing bar code to solve the issue about barcode printing in java.

    Good luck.