老师您好!
我想建一个表,有工序代码、操作员号、条形码三个字段。我以工序代码和操作员号两个字段生成条形码,存储到条形码字段中。我想问:1.是不是写一段代码批量生成?2、条形码字段的数据类型是什么?
我扒的本指南的代码,不执行。您帮我看一下吧。谢谢!
Dim doc As New PrintDoc
Dim img As prt.RenderImage
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.Code39
Bar.BarRatio = 0.3
Bar.BarHeight = 8
Doc.Stacking = prt.StackingRulesEnum.InlineLeftToRight
For Each r As Row In Tables("工序扫码").Rows
bar.Code = r("操作员号")
img = New prt.RenderImage
img.Image = bar.GetImage
Doc.Body.Children.Add(img)
Next
Doc.Preview()