如何在不使用任何标签软件的两列色带表C#winforms app上打印条形码打印机上的条形码。 [英] How to print barcode on barcode printer on two columns ribbon sheet C# winforms app without using any labelling software.

查看:121
本文介绍了如何在不使用任何标签软件的两列色带表C#winforms app上打印条形码打印机上的条形码。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好偷看,

我正在使用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标签打印机是
I'm also looking for solution, if you have any correct answer please post the sample code.
my tsc label printer is
"TSC TTP-244ME Plus"


使用这些 - 7个免费条形码字体·1001个字体 [ ^ ]



他们只是工作 - 假设你可以选择你想要的字体。

另外 - 确保你学习了你想要使用的条形码的规则。

例如,它们通常具有开始和停止字符以及内容。



另外,请记住,有许多条形码设置用于不同的目的。如果不是您的选择,您可能需要找到特定的一个。


Use these - 7 Free Barcode Fonts · 1001 Fonts[^]

They just work - assuming you can select the font you wish.
Also - make SURE you learn the rules for the barcode you wish to use.
For example, they typically have a start and stop character along with the content.

Also, remember that there are many barcode set which were designed for different purposes. You may have to find a specific one if it's not your choice.


这篇关于如何在不使用任何标签软件的两列色带表C#winforms app上打印条形码打印机上的条形码。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆