3 Replies Latest reply on Jun 21, 2018 11:19 AM by onair sam

    Unable to print the DataMatrix barcode

    onair sam

      I'm trying to print the Data matrix barcode using generic text driver. The top half of the barcode looks ok but the other half is not printing properly.

      Here is the code for barcode:

      ^GFA,3200,3200,20,F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0 F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0 F0F0F0F0F0F0F0F0F0FF000F0FF0F0000F0F0FF0F00FFFFF00F0FFFF0FFF000F0FF0F0000F0F0FF0 F00FFFFF00F0FFFF0FFF000F0FF0F0000F0F0FF0F00FFFFF00F0FFFF0FFF000F0FF0F0000F0F0FF0 F00FFFFF00F0FFFF0FF0F0FF000FFF0F000FF0F0FF0F00F0F0000F0000F0F0FF000FFF0F000FF0F0 FF0F00F0F0000F0000F0F0FF000FFF0F000FF0F0FF0F00F0F0000F0000F0F0FF000FFF0F000FF0F0 FF0F00F0F0000F0000FF0000F0FFFF0FF000FFFF0FFFFF000FFF000FFFFF0000F0FFFF0FF000FFFF 0FFFFF000FFF000FFFFF0000F0FFFF0FF000FFFF0FFFFF000FFF000FFFFF0000F0FFFF0FF000FFFF 0FFFFF000FFF000FFFF0FF0000FFFF0F00FF00F000FF0F0F0F000F0000F0FF0000FFFF0F00FF00F0 00FF0F0F0F000F0000F0FF0000FFFF0F00FF00F000FF0F0F0F000F0000F0FF0000FFFF0F00FF00F0 00FF0F0F0F000F0000FFFFFF00F000000FF00FF0F0FFFFFFFFFFFF00FFFFFFFF00F000000FF00FF0 F0FFFFFFFFFFFF00FFFFFFFF00F000000FF00FF0F0FFFFFFFFFFFF00FFFFFFFF00F000000FF00FF0 F0FFFFFFFFFFFF00FFF00F00FF0FF0F00FF000FF00F000FF0F00FFF0F0F00F00FF0FF0F00FF000FF 00F000FF0F00FFF0F0F00F00FF0FF0F00FF000FF00F000FF0F00FFF0F0F00F00FF0FF0F00FF000FF 00F000FF0F00FFF0F0F0000FFFF0F0F00F0FFFF0F0F000F0F0FFFF0FFFF0000FFFF0F0F00F0FFFF0 F0F000F0F0FFFF0FFFF0000FFFF0F0F00F0FFFF0F0F000F0F0FFFF0FFFF0000FFFF0F0F00F0FFFF0 F0F000F0F0FFFF0FFFF0000FFF0FFF0000FFF0FF00000F00F0F0F00F00F0000FFF0FFF0000FFF0FF 00000F00F0F0F00F00F0000FFF0FFF0000FFF0FF00000F00F0F0F00F00F0000FFF0FFF0000FFF0FF 00000F00F0F0F00F00F0FFFFF000FF00FF000FFF0000000FFF000F0FFFF0FFFFF000FF00FF000FFF 0000000FFF000F0FFFF0FFFFF000FF00FF000FFF0000000FFF000F0FFFF0FFFFF000FF00FF000FFF 0000000FFF000F0FFFFFF0FF0F00FFFFF0FF00F0F000F0000FF00F0F00FFF0FF0F00FFFFF0FF00F0 F000F0000FF00F0F00FFF0FF0F00FFFFF0FF00F0F000F0000FF00F0F00FFF0FF0F00FFFFF0FF00F0 F000F0000FF00F0F00F0FFF0FFFFF000FF0F0FF0F000F0FFF0FF0F00FFF0FFF0FFFFF000FF0F0FF0 F000F0FFF0FF0F00FFF0FFF0FFFFF000FF0F0FF0F000F0FFF0FF0F00FFF0FFF0FFFFF000FF0F0FF0 F000F0FFF0FF0F00FFFF0F000FFF0F0F00FFF0FFF0FF00F0000F000FF0FF0F000FFF0F0F00FFF0FF F0FF00F0000F000FF0FF0F000FFF0F0F00FFF0FFF0FF00F0000F000FF0FF0F000FFF0F0F00FFF0FF F0FF00F0000F000FF0FF000000F0F000FF00FFF0000F000F0FF00F00FFFF000000F0F000FF00FFF0 000F000F0FF00F00FFFF000000F0F000FF00FFF0000F000F0FF00F00FFFF000000F0F000FF00FFF0 000F000F0FF00F00FFFFFFFF00FF000F00F0F0FF0FFF0F000000FFF000FFFFFF00FF000F00F0F0FF 0FFF0F000000FFF000FFFFFF00FF000F00F0F0FF0FFF0F000000FFF000FFFFFF00FF000F00F0F0FF 0FFF0F000000FFF000F0F00000FF000F0FF0FFFFFF0FFF000F0FFF0F0FF0F00000FF000F0FF0FFFF FF0FFF000F0FFF0F0FF0F00000FF000F0FF0FFFFFF0FFF000F0FFF0F0FF0F00000FF000F0FF0FFFF FF0FFF000F0FFF0F0FFFFF00F0F0F0FFF0F000FFFF00FF00000FF00F00FFFF00F0F0F0FFF0F000FF FF00FF00000FF00F00FFFF00F0F0F0FFF0F000FFFF00FF00000FF00F00FFFF00F0F0F0FFF0F000FF FF00FF00000FF00F00F0000000FFF00000FF0FF0FF000F0F0F00F00F0FF0000000FFF00000FF0FF0 FF000F0F0F00F00F0FF0000000FFF00000FF0FF0FF000F0F0F00F00F0FF0000000FFF00000FF0FF0 FF000F0F0F00F00F0FF000000FFFFFF00000F0FFF0F0F0F0000F0F0FF0F000000FFFFFF00000F0FF F0F0F0F0000F0F0FF0F000000FFFFFF00000F0FFF0F0F0F0000F0F0FF0F000000FFFFFF00000F0FF F0F0F0F0000F0F0FF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFF0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0 F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0F0 F0F0F0F0F0F0F0F0F0FFFFF000FFF000F00F0FFF0FF0F00FFF0FF0FF0FFFFFF000FFF000F00F0FFF 0FF0F00FFF0FF0FF0FFFFFF000FFF000F00F0FFF0FF0F00FFF0FF0FF0FFFFFF000FFF000F00F0FFF 0FF0F00FFF0FF0FF0FFFFF00FF0FF0FF0FF0F0F00FFF00F00F0FFFFFF0FFFF00FF0FF0FF0FF0F0F0 0FFF00F00F0FFFFFF0FFFF00FF0FF0FF0FF0F0F00FFF00F00F0FFFFFF0FFFF00FF0FF0FF0FF0F0F0 0FFF00F00F0FFFFFF0FF000FF0F0000FFF00FFF00F0F0FF0F0FFFF00FFFF000FF0F0000FFF00FFF0 0F0F0FF0F0FFFF00FFFF000FF0F0000FFF00FFF00F0F0FF0F0FFFF00FFFF000FF0F0000FFF00FFF0 0F0F0FF0F0FFFF00FFF00F00F0F00FFFFF0F00FF00FF000F0FF00F0FF0F00F00F0F00FFFFF0F00FF 00FF000F0FF00F0FF0F00F00F0F00FFFFF0F00FF00FF000F0FF00F0FF0F00F00F0F00FFFFF0F00FF 00FF000F0FF00F0FF0FF00FFF0F0F0FFF0000FF00FF0F000FFF0F00F0FFF00FFF0F0F0FFF0000FF0 0FF0F000FFF0F00F0FFF00FFF0F0F0FFF0000FF00FF0F000FFF0F00F0FFF00FFF0F0F0FFF0000FF0 0FF0F000FFF0F00F0FF000000FF0F0000FFF00F00FFFFFFFF0000F0000F000000FF0F0000FFF00F0 0FFFFFFFF0000F0000F000000FF0F0000FFF00F00FFFFFFFF0000F0000F000000FF0F0000FFF00F0 0FFFFFFFF0000F0000F0FF00F0F0FF0F0FF0FFF00FFFFF0F00F0F0F0FFF0FF00F0F0FF0F0FF0FFF0 0FFFFF0F00F0F0F0FFF0FF00F0F0FF0F0FF0FFF00FFFFF0F00F0F0F0FFF0FF00F0F0FF0F0FF0FFF0 0FFFFF0F00F0F0F0FFFFF0FF0FFF00FF0FF000FF0F0FFF0F000FF00FF0FFF0FF0FFF00FF0FF000FF 0F0FFF0F000FF00FF0FFF0FF0FFF00FF0FF000FF0F0FFF0F000FF00FF0FFF0FF0FFF00FF0FF000FF 0F0FFF0F000FF00FF0FFFFFFFF0FF0FF0F00FFF0F000F00F0F0FFFF00FFFFFFFFF0FF0FF0F00FFF0 F000F00F0F0FFFF00FFFFFFFFF0FF0FF0F00FFF0F000F00F0F0FFFF00FFFFFFFFF0FF0FF0F00FFF0 F000F00F0F0FFFF00FF00FF0000FF0000F00F0F0F0FFFF000FF0000F00F00FF0000FF0000F00F0F0 F0FFFF000FF0000F00F00FF0000FF0000F00F0F0F0FFFF000FF0000F00F00FF0000FF0000F00F0F0 F0FFFF000FF0000F00F00F00FF0000000F0F0FF0FF0FF0F000F0FF000FF00F00FF0000000F0F0FF0 FF0FF0F000F0FF000FF00F00FF0000000F0F0FF0FF0FF0F000F0FF000FF00F00FF0000000F0F0FF0 FF0FF0F000F0FF000FFFF000F00000F00FFFF0FFFF0F0F0FFF00F0FF00FFF000F00000F00FFFF0FF FF0F0F0FFF00F0FF00FFF000F00000F00FFFF0FFFF0F0F0FFF00F0FF00FFF000F00000F00FFFF0FF FF0F0F0FFF00F0FF00F0F0F0000FF0FFFFF00FFF0FF0FF0FFFF00F0FFFF0F0F0000FF0FFFFF00FFF 0FF0FF0FFFF00F0FFFF0F0F0000FF0FFFFF00FFF0FF0FF0FFFF00F0FFFF0F0F0000FF0FFFFF00FFF 0FF0FF0FFFF00F0FFFFF0F00F0F0FFF0FFF0F0F0FF0F0FF000FF0FFF00FF0F00F0F0FFF0FFF0F0F0 FF0F0FF000FF0FFF00FF0F00F0F0FFF0FFF0F0F0FF0F0FF000FF0FFF00FF0F00F0F0FFF0FFF0F0F0 FF0F0FF000FF0FFF00FFF000FF0FFFFFF0F00FF0F0FFF00000FF000FFFFFF000FF0FFFFFF0F00FF0 F0FFF00000FF000FFFFFF000FF0FFFFFF0F00FF0F0FFF00000FF000FFFFFF000FF0FFFFFF0F00FF0 F0FFF00000FF000FFFFF000F0FFF00F0F0FFF0FF00F00FF00FFFFF00F0FF000F0FFF00F0F0FFF0FF 00F00FF00FFFFF00F0FF000F0FFF00F0F0FFF0FF00F00FF00FFFFF00F0FF000F0FFF00F0F0FFF0FF 00F00FF00FFFFF00F0FF0000FFF000FF0F0F0FFFFFF0FF00FFF000FF0FFF0000FFF000FF0F0F0FFF FFF0FF00FFF000FF0FFF0000FFF000FF0F0F0FFFFFF0FF00FFF000FF0FFF0000FFF000FF0F0F0FFF FFF0FF00FFF000FF0FFFFF0F00000F00F0FFF0FFFFFF0F00FF0FF00FF0FFFF0F00000F00F0FFF0FF FFFF0F00FF0FF00FF0FFFF0F00000F00F0FFF0FFFFFF0F00FF0FF00FF0FFFF0F00000F00F0FFF0FF FFFF0F00FF0FF00FF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFFFF^FS

       

      Any help in solving the issue would be greatly appreciated!

        • Re: Unable to print the DataMatrix barcode
          Robin West

          Hi Onar,

          I tried this code and it printed fine for me.  What do you mean by "the other half is not printing properly." ?  An image would be useful.

           

          Have you tried just using the DataMatrix barcode command?

          ^XA^FO20,20^BXN,4,200^FH\^FD\00\01\FD\78\0C\00\30\37\31\56\FD\69\0C\00\FD\FD\FD\38\01\FD\1A\00\FD\FD\33\01\72\FD\00\00\21\3C\65\00\00\00\00\00\00\00\00\0C\44\05\00\37\34\32\31\FD\6D\0E\00\FD\03\0B\5A\24\FD\5F\FD\FD\06\14\FD\FD\36\FD\06\FD\FE\FD\65\FD\50\36\FD\37\7C\FD\FD\5C\25\FD\62\6C\2A\21\37\FD\FD\FD\24\FD\07\00\01\72\FD\00\00^FS^XZ

            • Re: Unable to print the DataMatrix barcode
              onair sam

              Hi Robin,

               

              Thank you for looking into this issue!

               

              Please see the attached screenshot of a printed label, the data matrix looks fine if I use the ZPL Viewer (http://labelary.com/viewer.html) but when I try to print the label  datamatrix barcode doesn't print properly. I tried two printers - ZP 505 and LP 2488-Z and they both prints the same result.

               

              I cannot use ^BXN as the ZPL code is generated by Endicia APIs and they provide the base64 decoded ASCII codes only.

               

              IMG_20180620_121733_2.jpg

               

              Thanks you!

            • Re: Unable to print the DataMatrix barcode
              onair sam

              I found the issue, the print preview was cutting of the lines which do not have space in it and doesn't fit on the print preview. Once I reduced the scaling in print preview before printing, everything is fine. The DataMatrix is printing properly now.

              Thank you Robin for your response!