主 题: 打印机打印标签位置 |
作 者:王小姐 发表时间: 2016-09-19 20:00:24 使用贵公司提供的二次开发包,在用条码机打印条码时,打印机一旦重启,每次均要打印四个标签之后,位置才能准确。
注:(1)标签纸大小为24*19mm,间隔设置为2mm (2)已尝试过打印机重启时同时按feed和pause键,无效 果 (3)也尝试过设置打印机首选项,设置其标签的宽和高分别为:24和19mm,且间隔有3mm变成2mm 另语句为: /// /// 标签打印 /// /// 打印机驱动名称 /// 抗体名称 /// 病人号码 /// 自定义1项 /// 日期 // public static void PrintLabel(string printerName, string barNum,string antiName, string mediNum,string vo1,string date) public static void PrintLabel(string barNum,string antiName, string mediNum,string vo1,string date) { // OpenPrinter(printerName); // TSCLIB_DLL.openport(printerName); TSCLIB_DLL.setup("24", "19", "4", "4", "0", "2", "0"); //Setup the media size and sensor type info //TSCLIB_DLL.formfeed(); TSCLIB_DLL.clearbuffer(); //Clear image buffer TSCLIB_DLL.barcode("55", "3", "93", "35", "0", "0", "3", "1", barNum); //Drawing barcode TSCLIB_DLL.windowsfont(15, 43, 35, 0, 0, 0, "宋体", antiName); //Draw windows font TSCLIB_DLL.windowsfont(15, 81, 35, 0, 0, 0, "宋体", mediNum); //Draw windows font TSCLIB_DLL.windowsfont(15, 155, 35, 0, 0, 0, "宋体", date); //Draw windows font TSCLIB_DLL.windowsfont(15, 118, 35, 0, 0, 0, "宋体", vo1); //Draw windows font TSCLIB_DLL.downloadpcx("UL.PCX", "UL.PCX"); //Download PCX file into printer TSCLIB_DLL.sendcommand("PUTPCX 100,400,\"UL.PCX\""); //Drawing PCX graphic TSCLIB_DLL.printlabel("1", "1"); // TSCLIB_DLL.closeport(); //Print labels } |
回 复: 您好!已有相关工作人员与您联系。感谢您对我们的支持! |
回复时间: 2016-09-20 15:34:25 |