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();