TSCLIB_DLL.openport("USB"); //Open specified printer driver
TSCLIB_DLL.setup("33.8", "32.4", "4", "8", "0", "0", "0"); //Setup the media size and sensor type info
TSCLIB_DLL.clearbuffer();
for (int i = 0; i < num; i++)
{
string strP = "QRCODE 60,70,L,6,A,0,M2,S3,\"" + (((UnitMsg)txtUnit.Tag).UnitID + DateTime.Now.ToString("yyyyMMddHHmmssff")) + "\"";
TSCLIB_DLL.sendcommand(strP);
TSCLIB_DLL.printlabel("1", "1");
TSCLIB_DLL.clearbuffer();
}
TSCLIB_DLL.closeport();
TSCLIB_DLL.setup("33.8", "32.4", "4", "8", "0", "0", "0"); //Setup the media size and sensor type info
TSCLIB_DLL.clearbuffer();
for (int i = 0; i < num; i++)
{
string strP = "QRCODE 60,70,L,6,A,0,M2,S3,\"" + (((UnitMsg)txtUnit.Tag).UnitID + DateTime.Now.ToString("yyyyMMddHHmmssff")) + "\"";
TSCLIB_DLL.sendcommand(strP);
TSCLIB_DLL.printlabel("1", "1");
TSCLIB_DLL.clearbuffer();
}
TSCLIB_DLL.closeport();
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货