Developing Applications 2-5
Scanner Function Overview
The scanner contains a buffer to hold the data from a scan. The
application receives data from the system by one of two methods. The
first method is by the standard keyboard input and second method is by a
special Windows message. See Chapter 4, “Scanning Functions” for
information about the two methods.
Using the Scanner
To use the scanner, the application must:
1. Include the code to instantiate the class. For example, using
VB.NET:
Dim MyScanner As New Ultra.Scan.General
MyScanner.Postamble = “\n\r”
Dim Scanner As New Ultra.Scan.Control
Scanner.SendScanStatus = False
2. Configure the control scanning attributes and the attributes for each
bar code. For example, using VB.NET:
Dim UPC As New Ultra.Scan.UPCEAN
UPC.EnableUPCA = True
UPC.EnableUPCE = False
3. Call the CommitChanges function to save the new settings. For
example, using VB.NET
Scanner.CommitChanges()