文件名称:
105s print label set
开发工具:
文件大小: 2kb
下载次数: 0
上传时间: 2016-03-01
详细说明: 使用vb控制105s打印机指令打印标签,Private Sub Print_Test_SN(Model_Name As String, WeekDate As Date, SN As Long) Dim filehandle As Integer Dim ModelName As String Dim yearweek As String Dim str_vale() As String Dim Vale As String Dim SN_36 As String Dim Model As String Dim Xtop, Ytop, Xstep, Ystep As Single Dim BarcodeSN, ModelSN, YearweekSN As String Vale = "-" yearweek = "" str_vale() = Split(Model_Name, Vale) yearweek = Format(WeekDate, "yy") & Format(Format(WeekDate, "ww"), "00") Model = str_vale(1) + str_vale(2) SN_36 = UCase(DEC_to_ZEX(SN)) BarcodeSN = Model & "04" & yearweek & "1" & SN_36 ModelSN = Left(Trim(Model_Name), Len(Model_Name) - 2) & Right(Trim(Model_Name), 2) & " 04" YearweekSN = yearweek & "-1-" & SN_36 Xtop = Text1.Text Ytop = Text2.Text Xstep = 448 For i = 1 To 2 cc = "^XA ^LH5,20 ^LL1964" m = 0 For K = 1 To i - 1 m = i * i Next K For j = 1 To 4 cc = cc + " ^DTR:ARIAL.TTF,52010 ^MD 20 ^PRA,E ^FO" & Xtop + (j - 1) * Xstep & "," & Ytop & " ^BQN,2,5 ^FDM0," & BarcodeSN & j + m & "^FS ^FO" & Xtop + (j - 1) * Xstep + 110 & "," & Ytop + 10 & " ^A0N,32,24 ^FD" & ModelSN & "^FS ^FO" & Xtop + (j - 1) * Xstep + 110 & "," & Ytop + 45 & " ^A0N,32,24 ^FD" & YearweekSN & " " & j + m & "^FS ^FO" & Xtop + (j - 1) * Xstep + 110 & "," & Ytop + 80 & " ^A0N,32,32 ^FDMade In China^FS " Next j cc = cc + "^XZ" filehandle = FreeFile Open "LPT1" For Output As filehandle Print #filehandle, cc Close filehandle Next i End Sub ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.