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


  共有1640人关注过本帖平板打印复制链接

主题:[求助] 条形码

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


加好友 发短信
等级:七尾狐 帖子:1634 积分:14432 威望: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()

 回到顶部