哪位有斑马机(Zebra)打印汉字和条码的例子?

解决方案 »

  1.   

    有C#源码的给源码,[email protected] 谢谢了
      

  2.   

    找找Fnthex32.dll 组件的资料看看吧这个可以实现的.
      

  3.   

    http://blog.csdn.net/JustLovePro/archive/2008/04/03/2246339.aspx
      

  4.   

    C#开发的条码标签打印软件
    完美支持ZEBRA的ZPLII语言
    支持二次开发
    详细请看:
    http://www.ync-tech.com/
      

  5.   

    http://www.codeproject.com/Tips/142616/Generating-and-Printing-Barcodes-on-Zebra-Printer.aspx
    http://www.codeproject.com/KB/vb/ZebraEPL2Printing.aspx
      

  6.   

    public static extern int GETFONTHEX(
      string outstr,
      string fontname,
      string outstrname,
      int orient,
      int height,
      int width,
      int bold,
      int italic,
      StringBuilder hexbuf);//这个是定义
    引用如下:
     FileStream fsg = new FileStream(Application.StartupPath + "\\1.text", FileMode.Append, FileAccess.Write);
      StreamWriter sw = new StreamWriter(fsg);
      StringBuilder hexbuf = new StringBuilder(21 * 1024);
      int count;
      count = GETFONTHEX("测试简体中文", "宋体", "test01", 0, 5, 30, 0, 0, hexbuf);
      if (count > 0)
      {
      sw.Write(hexbuf.ToString().Substring(0, count));
      count = 0;
      }
      count = GETFONTHEX("测试繁体中文", "宋体", "test02", 0, 5, 30, 0, 0, hexbuf);
      if (count > 0)
      {
      sw.Write(hexbuf.ToString().Substring(0, count));
      count = 0;
      }
      sw.Close();
    当你要打印它是就使用ZPL语言
    ^XA^MD30^LH20,20^FO20,20^XGtest01,1,1^FS^XZ
    ^XA^MD30^LH20,100^FO20,20^XGtest02,1,1^FS^XZ