【问题标题】:Zebra Printer-Barcode printing formatZebra 打印机-条码打印格式
【发布时间】:2016-12-19 09:44:09
【问题描述】:

我想通过打印到文件打印 Code 128 条形码。我必须发送什么文本格式。 Content-01 数值数据 17 数值数据 10 变量数据。

请给我公式。

问候 搜索引擎

【问题讨论】:

    标签: printing barcode zebra-printers


    【解决方案1】:

    您使用 ZPL 与打印机通信。打印 Code 128 条码的 ZPL 语法在这里:https://support.zebra.com/cpws/docs/zpl/code_128.htm

    【讨论】:

      【解决方案2】:

      我们可以对标签打印机(Zebra zp450)使用直接打印吗?我可以使用以下逻辑打印单个条形码。而且它可以在 a4 纸上正确打印。

      float x = leftMargin;
                  float y = topMargin;
                  for (; _iCount <= barcodeRows; _iCount++)
                  {
                      float lineTop = y;
                      for (int j = 1; j <= perLine; j++)
                      {
                          BarcodeDraw bdraw = BarcodeDrawFactory.GetSymbology(BarcodeSymbology.Code128);
                          Image barcodeImage = bdraw.Draw(txtBarcode.Text, barcodeHeight);
                          e.Graphics.DrawImage(barcodeImage, new Rectangle(Convert.ToInt16(x), Convert.ToInt16(y), barcodeWidth, barcodeHeight));
                          y = lineTop;
                          printCount++;
                      }
                      x = leftMargin;
                      y = y + (80+ 20);
                  }
      

      【讨论】:

        【解决方案3】:

        获取 ZPL 代码(Zebra 打印机本机代码)的最佳方式是使用 Zebradesigner 软件(在 zebra 网站上免费)生成带有所需条形码的标签,然后使用“打印到文件”选项即可在打印菜单中找到。 这将保存一个文本文件,其中包含打印标签所需的所有命令。

        【讨论】:

          猜你喜欢
          • 2023-03-19
          • 2012-06-13
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-12-07
          • 1970-01-01
          • 1970-01-01
          • 2018-07-20
          相关资源
          最近更新 更多