Datamax E-Class Mark II Programmer's Manual page 181

Class series ii
Hide thumbs Also See for E-Class Mark II:
Table of Contents

Advertisement

'Concatenate all the dynamic data fields with the constant header
strings,
OrderData = OrderTxt & txtOrderNo.Text & Chr$(13) & OrderBC &
txtOrderNo.Text & Chr$(13) & CustomerTxt & txtCustomer.Text
Item1 = Item1NO & txtItem1.Text & Chr$(13) & Item1BC &
txtItem1.Text & Chr$(13) & Item1Txt & txtItem1Desc.Text & Chr$(13)
& Item1Qty & txtItem1Qty.Text
'Concatinate entire label format and send out serial port
PrintLabel = CharSet & MaxLength & Chr$(13) & CharSet &
StartLabel & Chr$(13) & PrintDensity & Chr$(13) & Image1 & Chr$(13)
& OrderData & Chr$(13) & Item1 & Chr$(13) & Fixed & Chr$(13) &
EndLabel
Comm1.Output = PrintLabelEnd Sub
'Display the record form on the screen
Private Sub Form_Load()
Fixed = Itm1 & Chr$(13) & Chr$(13) & Qty1 & Chr$(13) & Chr$(13)
& BoxPos1 & Boxsize & Chr$(13)
CharSet = Chr$(126) 'Alternate <stx> character ~
MComm.PortOpen = 1'Open the serial port
End Sub
'Exit the program by clicking Exit button with the mouse
Private Sub cmdExit_Click()
Comm1.PortOpen = 0'Close down the serial port
End
End Sub
VB Application interfacing via Windows Driver
Create a form similar to the one shown here.
VERSION 5.00
Begin VB.Form Form1
Caption
ClientHeight
ClientLeft
ClientTop
ClientWidth
LinkTopic
MaxButton
MinButton
ScaleHeight
ScaleWidth
Class Series 2 Programmer's Manual
Appendix B – Sample Programs
terminated with <cr> Chr$(13)
=
"Datamax Test Print"
=
1065
=
60
=
345
=
2325
=
"Form1"
=
0
'False
=
0
'False
=
1065
=
2325
169

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents