If e.Book.TempLate = "二维码设备标签打印" Then
If e.region = "制造三部固定资产台账" Then
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
此主题相关图片如下:标签实际图片.png
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode1.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode1.gif",300)
End If
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode2.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode2.gif",300)
End If
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode3.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode3.gif",300)
End If
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode4.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode4.gif",300)
End If
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode5.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode5.gif",300)
End If
If e.DataRow Is Nothing OrElse e.DataRow.IsNull("资产名称") Then \'如果是空行或者Lot列为空
Dim img As New System.Drawing.Bitmap(1,1) \'生成一个空白图片
img.Save(ProjectPath & "Images\\QRCode6.gif")
Else \'否则生成条形码图片
Dim Bar As New BarCodeBuilder
Bar.Symbology = Barpro.Symbology.QRCode
Bar.Code = e.DataRow("资产名称")
Bar.BarRatio = 0.3
Bar.BarHeight = 8
bar.SaveImage(ProjectPath & "Images\\QRCode6.gif",300)
End If
End If
End If