Function PrintCode(ByVal Model As String, ByVal Code As String, ByVal CopyCount As Integer, ByVal Conv As Integer) As Boolean
Dim TF As Long
TF = B_CreatePrn(1, "")
TF = TF + B_Set_Darkness(12)
Dim Addnum As Integer
Dim BarCode As String
BarCode = ""
If Conv = 1 Then
BarCode = Code & "<-1>"
Else
BarCode = Code & "<+1>"
End If
Addnum = 0
TF = TF + B_Prn_Text(60, Addnum + 30, 0, 3, 1, 1, 78, Model)
TF = TF + B_Prn_Barcode(60, Addnum + 50, 0, "2", 3, 6, 140, 78, BarCode)
TF = TF + B_Prn_Text(170, Addnum + 195, 0, 2, 1, 1, 78, BarCode)
Addnum = 240
TF = TF + B_Prn_Text(60, Addnum + 30, 0, 3, 1, 1, 78, Model)
TF = TF + B_Prn_Barcode(60, Addnum + 50, 0, "2", 3, 6, 140, 78, BarCode)
TF = TF + B_Prn_Text(170, Addnum + 195, 0, 2, 1, 1, 78, BarCode)
Addnum = 480
TF = TF + B_Prn_Text(60, Addnum + 30, 0, 3, 1, 1, 78, Model)
TF = TF + B_Prn_Barcode(60, Addnum + 50, 0, "2", 3, 6, 140, 78, BarCode)
TF = TF + B_Prn_Text(170, Addnum + 195, 0, 2, 1, 1, 78, BarCode)
If TF = 0 Then TF = B_Print_MCopy(CopyCount, 1)
Call B_ClosePrn
If TF = 0 Then PrintCode = True
End Function |
|