Foxtable(狐表)用户栏目专家坐堂 → 怎样在一张表李打印两列内容的条形码?


  共有3352人关注过本帖树形打印复制链接

主题:怎样在一张表李打印两列内容的条形码?

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2014/6/22 16:04:00 [显示全部帖子]

代码这样写,引用的时候,名字不能一样

 

If e.Book.TempLate = "终检FQC检验清单" Then
    If e.region = "衰减器订单执行统计表" 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\BarCode1.gif")
        Else '否则生成条形码图片
            Dim Bar As New BarCodeBuilder
           
            Bar.Symbology = Barpro.Symbology.Code128
            Bar.Code = e.DataRow("晨信工单")
            Bar.BarRatio = 0.3
            Bar.BarHeight = 8
            bar.SaveImage(ProjectPath & "Images\BarCode1.gif",300)
        End If
        If e.DataRow Is Nothing OrElse e.DataRow.IsNull("短文本") Then '如果是空行或者Lot列为空
            Dim img As New System.Drawing.Bitmap(1,1) '生成一个空白图片
            img.Save(ProjectPath & "Images\BarCode2.gif")
        Else '否则生成条形码图片
            Dim Bar As New BarCodeBuilder
            Bar.Symbology = Barpro.Symbology.Code128
            Bar.Code = e.DataRow("短文本")
            Bar.BarRatio = 0.3
            Bar.BarHeight = 8
            bar.SaveImage(ProjectPath & "Images\BarCode2.gif",300)
        End If
       
    End If
End If


 回到顶部