Foxtable(狐表)用户栏目专家坐堂 → [求助] 条形码


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

主题:[求助] 条形码

帅哥,在线噢!
zcgmxf
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:七尾狐 帖子:1629 积分:14396 威望:0 精华:0 注册:2014/6/6 8:42:00
[求助] 条形码  发帖心情 Post By:2019/6/12 7:33:00 [只看该作者]

老师,下面的代码生成的条形码怎么无法扫描?谢谢!

Dim doc As New PrintDoc
Dim r As Row = Tables("职业健康检查表").Current
Dim Bar As New BarCodeBuilder
Dim img As prt.RenderImage
Bar.Symbology = Barpro.Symbology.Code39
bar.Code = r("条码号")
bar.HumanReadableText = r("姓名") 
bar.Text = r("性别") 
Bar.BarHeight = 10
Bar.QuietZoneWidth = 2
Bar.BarRatio = 0.3
Bar.AddCheckSum = False
Bar.DisplayChecksum = False
Bar.DisplayStartStopChar = False
Bar.TextAlignment = Barpro.Alignment.BelowRight
Doc.Stacking = prt.StackingRulesEnum.InlineLeftToRight
    For i As Integer = 1 To 3
        img = new prt.RenderImage
        img.Image = bar.GetImage
        Doc.Body.Children.Add(img)
    Next

Doc.Preview()

 回到顶部
帅哥,在线噢!
有点蓝
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106097 积分:539590 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/6/12 8:58:00 [只看该作者]

去掉Bar.BarRatio = 0.3
条码变形的过分了,所以无法识别

 回到顶部