哪位有斑马机(Zebra)打印汉字和条码的例子? 哪位有斑马机(Zebra)打印汉字和条码的例子? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 有C#源码的给源码,[email protected] 谢谢了 找找Fnthex32.dll 组件的资料看看吧这个可以实现的. http://blog.csdn.net/JustLovePro/archive/2008/04/03/2246339.aspx C#开发的条码标签打印软件完美支持ZEBRA的ZPLII语言支持二次开发详细请看:http://www.ync-tech.com/ http://www.codeproject.com/Tips/142616/Generating-and-Printing-Barcodes-on-Zebra-Printer.aspxhttp://www.codeproject.com/KB/vb/ZebraEPL2Printing.aspx 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 求大神指教,如何用。net对oracle数据库的emp表进行增删改查操作 C# Word 文档内容加在一起。 写了个程序,退出时出错,大n们给分析一下哪里可能出错? 怎样实现这几个功能(c#windows应用程序)? 在一个窗体中怎样控制其他窗体中的控件 winform裡面的datagrid中的DataGridBoolColumn的checkbox 【新手上路】求教DataGrid问题 如何在不同窗体实现对同一DataRow进行绑定 关于AutoPostBack的小问题。 一个新手的迷惘,请大家给点意见,来者有分... 怎么隐藏程序运行时的form窗口 C# 实现虚拟打印机
完美支持ZEBRA的ZPLII语言
支持二次开发
详细请看:
http://www.ync-tech.com/
http://www.codeproject.com/KB/vb/ZebraEPL2Printing.aspx
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