问题描述
你好偷看,
我正在使用winform app(c#)我想在条形码打印机上打印条形码
现在在TSC TTP 244 pro打印机上测试使用它DLL。
我想打印在有两列的Sheet上。帮助我。
i想要并排打印。
我试过
--------- --------------------------
======== ==
但它不起作用。
有没有其他方法可以完成这项任务???
我的尝试:
TSCLIB_DLL.openport(TSC TTP-244 Pro); //打开指定的打印机驱动程序
TSCLIB_DLL.setup(50.8,50.8,4,8,1,0,0); //设置介质尺寸和传感器类型信息
TSCLIB_DLL.clearbuffer();
TSCLIB_DLL.barcode(Convert.ToString(TSCLBX) ,50,128,50,0,0,2,2,*+ stringToPrint +*);
TSCLIB_DLL。 printerfont(Convert.ToString(TSCLBX),110,3,0,1,1,stringToPrint1); //绘制打印机字体
TSCLIB_DLL.windowsfont(TSCLBX,130,24,0,0,0,Arial,ITEM:+ ItemNameBar); //绘制windows字体
TSCLIB_DLL.windowsfont(TSCLBX,150,24,0,0,0,Arial,PACKING:+ Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX,170,24,0,0,0,Arial,RATE:+ Convert.ToString(SalesRate));
TSCLBX = TSCLBX + 100 ;
TSCLIB_DLL.barcode(Convert.ToString(TSCLBX),50,128,50,0,0,2,2,* + stringToPrint +*);
TSCLIB_DLL.printerfont(Convert.ToString(TSCLBX),110,3,0,1,1,stringToPrint1) ; //绘制打印机字体
TSCLIB_DLL.windowsfont(TSCLBX,130,24,0,0,0,Arial,ITEM:+ ItemNameBar); //绘制windows字体
TSCLIB_DLL.windowsfont(TSCLBX,150,24,0,0,0,Arial,PACKING:+ Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX,170,24,0,0,0,Arial,RATE:+ Convert.ToString(SalesRate)); // TSCLIB_DLL.downloadpcx(UL.PCX,UL.PCX); //将PCX文件下载到打印机中
// TSCLIB_DLL.downloadpcx(UL.PCX,UL.PCX); //将PCX文件下载到打印机中
TSCLIB_DLL.printlabel(1,1); //打印标签
TSCLIB_DLL.closeport();
hello peeps,
I m working on winform app(c#) I want to Print barcode on barcode printer
now m testing on TSC TTP 244 pro printer using its DLL.
I want to print on Sheet which has two columns .Help me.
i want print it side by side .
I tried
-----------------------------------
==========
but its not working .
is there any another way to do this task???
What I have tried:
TSCLIB_DLL.openport("TSC TTP-244 Pro"); //Open specified printer driver
TSCLIB_DLL.setup("50.8", "50.8", "4", "8", "1", "0", "0"); //Setup the media size and sensor type info
TSCLIB_DLL.clearbuffer();
TSCLIB_DLL.barcode(Convert.ToString(TSCLBX), "50", "128", "50", "0", "0", "2", "2", "*" + stringToPrint + "*");
TSCLIB_DLL.printerfont(Convert.ToString(TSCLBX), "110", "3", "0", "1", "1", stringToPrint1); //Drawing printer font
TSCLIB_DLL.windowsfont(TSCLBX, 130, 24, 0, 0, 0, "Arial", "ITEM :" + ItemNameBar); //Draw windows font
TSCLIB_DLL.windowsfont(TSCLBX, 150, 24, 0, 0, 0, "Arial", "PACKING :" + Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX, 170, 24, 0, 0, 0, "Arial", "RATE :" + Convert.ToString(SalesRate));
TSCLBX = TSCLBX + 100;
TSCLIB_DLL.barcode(Convert.ToString(TSCLBX), "50", "128", "50", "0", "0", "2", "2", "*" + stringToPrint + "*");
TSCLIB_DLL.printerfont(Convert.ToString(TSCLBX), "110", "3", "0", "1", "1", stringToPrint1); //Drawing printer font
TSCLIB_DLL.windowsfont(TSCLBX, 130, 24, 0, 0, 0, "Arial", "ITEM :" + ItemNameBar); //Draw windows font
TSCLIB_DLL.windowsfont(TSCLBX, 150, 24, 0, 0, 0, "Arial", "PACKING :" + Convert.ToString(packing1Bar));
TSCLIB_DLL.windowsfont(TSCLBX, 170, 24, 0, 0, 0, "Arial", "RATE :" + Convert.ToString(SalesRate)); // TSCLIB_DLL.downloadpcx("UL.PCX", "UL.PCX"); //Download PCX file into printer
// TSCLIB_DLL.downloadpcx("UL.PCX", "UL.PCX"); //Download PCX file into printer
TSCLIB_DLL.printlabel("1", "1"); //Print labels
TSCLIB_DLL.closeport();
推荐答案
"TSC TTP-244ME Plus"
这篇关于如何在不使用任何标签软件的两列色带表C#winforms app上打印条形码打印机上的条形码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!