BeforeBuildIf e.Book.TempLate = "铝巴送货单piao号一览表" Then 'TempLate是指模板文件的名称 If e.region = "铝巴送货单piao号一览表" Then |
e.Book.Marks.Add("记录数",1)
End if
End if
Builddetail
If e.Book.TempLate = "铝巴送货单piao号一览表" Then 'TempLate是指模板文件的名称
If e.region = "铝巴送货单piao号一览表" Then
Dim Bar As New BarCodeBuilder
' Bar.Symbology = Barpro.Symbology.Code128
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("piao号")
' Bar.BarRatio = 0.3
' Bar.BarHeight = 25
if e.Book.Marks("已结账") = 1
e.Book.Marks("已结账") = 2
bar.SaveImage(ProjectPath & "Images\BarCode.gif", 300)
else
e.Book.Marks("已结账") = 1
bar.SaveImage(ProjectPath & "Images\BarCode2.gif", 300)
end if
End If
End If