Appendix B – Sample Programs
Class Series Programmer’s Manual
157
docinfo.pDocName = “MyDoc”
docinfo.pOutputFile = vbNullString
docinfo.pDatatype = vbNullString
jobid = StartDocPrinter(hPrinter, 1, docinfo)
Call StartPagePrinter(hPrinter)
Call WritePrinter(hPrinter, ByVal printdata$, Len(printdata$),
written)
While Not EOF(1)
Get #f1, , ch
printdata$ = ch
Call WritePrinter(hPrinter, ByVal printdata$, Len(printdata$),
written)
Wend
Call EndPagePrinter(hPrinter)
Call EndDocPrinter(hPrinter)
Call ClosePrinter(hPrinter) ‘ Close when done
‘ Close file
Close #1
MsgBox “File sent to print spooler.”, vbExclamation
End Sub
Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub exit_Click()
End
End Sub
Private Sub Form_Load()
Dim X As Printer
‘ search for printer queue name / driver name
For Each X In Printers
If X.Port = “LPT1:” Then ‘printer found
‘ Set printer as system default.
SelPrinter = X.DeviceName
Exit For
End If
Next
End Sub
Private Sub lpt2_Click()
End Sub
Private Sub open_Click()
CommonDialog1.ShowOpen
loadfile = CommonDialog1.FileName
txtFile.Text = loadfile
End Sub
Summary of Contents for A-Class A-4310
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...