Foxtable(狐表)用户栏目专家坐堂 → 如何一行只输出一个条码


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

主题:如何一行只输出一个条码

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


加好友 发短信
等级:三尾狐 帖子:688 积分:4903 威望:0 精华:0 注册:2013/10/27 17:14:00
如何一行只输出一个条码  发帖心情 Post By:2015/7/21 19:05:00 [只看该作者]

Dim doc As New PrintDoc
Dim img As prt.RenderImage
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.Code128
Bar.BarRatio = 0.3
Bar.BarHeight = 8
'Bar.BarWidth = 50
Doc.Stacking = prt.StackingRulesEnum.InlineLeftToRight
For Each r As Row In Tables("表A").Rows
    For i As Integer = 1 To 1
        bar.Code = r("第一列")
        img = new prt.RenderImage
        img.Image = bar.GetImage
        Doc.Body.Children.Add(img)
   Next
Next
Doc.Preview()

 回到顶部
帅哥哟,离线,有人找我吗?
大红袍
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:贵宾 帖子:39310 积分:196782 威望:0 精华:1 注册:2015/4/25 9:23:00
  发帖心情 Post By:2015/7/21 19:10:00 [只看该作者]

Dim doc As New PrintDoc
Dim img As prt.RenderImage
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.Code128
Bar.BarRatio = 0.3
Bar.BarHeight = 8
'Bar.BarWidth = 50
'Doc.Stacking = prt.StackingRulesEnum.InlineLeftToRight
For Each r As Row In Tables("表A").Rows
    For i As Integer = 1 To 1
        bar.Code = r("第一列")
        img = new prt.RenderImage
        img.Image = bar.GetImage
        Doc.Body.Children.Add(img)
   Next
Next
Doc.Preview()

 回到顶部