1 Reply Latest reply on Feb 20, 2019 5:47 PM by Dmitry Prokhorov

    iMZ320 print the CPCL code in addition to the original message

    David Hernan Burela

      Hello

      I have problems sending to CPCL message to print in to iMZ320 because the printer does not understand the codes, so print all the message without pull apart the CPCL code from the string.

       

      I have set the printer language as Line Print  for CPCL (ZPL is the default language) .

       

      I share a litle example that I'm using to test the printer

       

       

       

      String msg = "PW 574\r\n";
      msg += "TONE 0\r\n";
      msg += "SPEED 3\r\n";
      msg += "ON-FEED IGNORE\r\n";
      msg += "NO-PACE\r\n";
      msg += "BAR-SENSE\r\n";
      msg += "PCX 25 28 !<vms1bit.pcx\r\n";
      msg += "BT 7 0 0\r\n";
      msg += "VB I2OF5 1 20 61 492 844 " + btBarCode + "\r\n";
      msg += "T 0 3 267 20 MUNICIPALIDAD DE\r\n";
      msg += "T 0 3 267 45  VILLA MERCEDES \r\n";
      msg += "T 5 2 270 70 #" + btBarCode.substring(20,23) + "-" + btBarCode.substring(23,31) + "\r\n";
      msg += "T 0 3 267 135 " + btFechaHora2.substring(0,16) + "\r\n";
      
      
      mmOutputStream.write(msg.getBytes());
      
      
      

       

       

      Also attached an image to show how the code is printed, in this case sending to the printer only simple text.

       

      Greetings and thanks