以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- EXCEL打印二维码分栏 (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=145024) |
-- 作者:hnguang -- 发布时间:2020/1/6 13:05:00 -- EXCEL打印二维码分栏 If e.Book.TempLate = "物料二维码打印" Then If e.region = "条码生成明细_table1" Then If e.DataRow Is Nothing OrElse e.DataRow.IsNull("二维码") Then \'如果是空行或者Lot列为空 Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片 img.Save(ProjectPath & "Images\\BarCode.gif") img.Save(ProjectPath & "Images\\BarCode1.gif") Else \'否则生成条形码图片 Dim Bar As New BarCodeBuilder Bar.Symbology = Barpro.Symbology.QRCode Dim size As String size = e.DataRow("二维码") \'size += "," & e.DataRow("发料数量") Bar.Code = size Bar.BarRatio = 0.3 Bar.BarHeight = 8 bar.SaveImage(ProjectPath & "Images\\BarCode.gif",300) bar.SaveImage(ProjectPath & "Images\\BarCode1.gif",300) End If End If End If 老师,按你提供的思路生成两个二维码图片这样子写两栏还是一样的条码内容,这语句应该怎样调整
|
-- 作者:有点蓝 -- 发布时间:2020/1/6 14:15:00 -- 请不要发重复的问题http://foxtable.com/bbs/dispbbs.asp?boardid=2&Id=145001 |