Appendix B – Sample Programs
150
Class Series Programmer’s Manual
ASCII text file
The following ASCII text file will also generate the label shown in Figure B-1.
^BL
H07
D11
19110080100002510K OHM 1/4 WATT<CR>
1a6210000000050590PCS<CR>
E<CR>
VB Application Generating DPL
The following sample is a Visual Basic program that displays a database record on the screen. A user
can scroll through the records and then print a selected one. Five bar codes are printed along with data
fields and headings.
‘Printer DPL Controls
Dim CharSet As String‘<STX> byte
Const StartLabel = “L”
Const EndLabel = “E”
Const PrintDensity = “D11”
‘Printer DPL Data to position dynamic information on label
Const OrderTxt = “191100704150010”‘font 9, 24 pt
Const OrderBC = “1a6205004200120”
Const CustomerTxt = “191100603600010”
Const Item1NO = “191100403250010”
Const Item1BC = “1a6204002870010”
Const Item1Txt = “191100402690010”
Const Item1Qty = “191100603070260”
‘DPL Fixed Items on label
Const Itm1 = “191100303400010Item #”
Const Qty1 = “191100303400250Quantity”
Const Boxsize = “B065035002002”
Const BoxPos1 = “1X1100003050240”
Const Image1 = “1Y3300004750010SLANT1”
Dim Fixed As String
‘Item Variables
Dim Item1 As String
Dim PrintLabel As String
Dim OrderData As String
‘Print label by clicking print button with the mouse
Private Sub cmdPrint_Click()
Summary of Contents for Ex2
Page 2: ......
Page 4: ......
Page 15: ...xi Appendix V 281 Bar Code Symbology Information Resources 281 Glossary 283 ...
Page 16: ...xii ...
Page 30: ...Immediate Command Functions 14 Class Series Programmer s Manual ...
Page 52: ...System Level Command Functions 36 Class Series Programmer s Manual ...
Page 144: ...Label Formatting Command Functions 128 Class Series Programmer s Manual ...
Page 162: ...Generating Label Formats 146 Class Series Programmer s Manual ...
Page 182: ...Appendix D Reset Codes 166 Class Series Programmer s Manual ...
Page 192: ...Appendix E Single Byte Symbol Sets 176 Class Series Programmer s Manual ...
Page 236: ...Appendix G Barcode Details 220 Class Series Programmer s Manual ...
Page 242: ...Appendix I Symbol Sets and Character Maps 226 Class Series Programmer s Manual ...
Page 272: ...Appendix P UPC A and EAN 13 256 Class Series Programmer s Manual ...
Page 282: ...Appendix R Plug and Play IDs 266 Class Series Programmer s Manual ...
Page 296: ...Appendix U WiFi Region Country Codes 280 Class Series Programmer s Manual ...
Page 302: ...Glossary 286 Class Series Programmer s Manual ...