Scanner ActiveX Control

BarCodeReadByZone

 

Set specific zone for 1D and 2D barcode recognizing.

Public Function BarCodeReadByZone( _
   ByVal iLeft  As long, _
   ByVal iTop  As long, _
   ByVal iWidth  As long, _
   ByVal iHeight  As long
) As Integer

 

Parameter

iLeft
Specifies the logical left-coordinate of the starting point of the rectangle.

iTop
Specifies the logical top-coordinate of the starting point of the rectangle.

iWidth
the width of rectangle.

iHeight
the height of rectangle.


Return Value

Return the number of barcode detected, if return value smaller than 0, it mean failed.

Example

   

Visual Basic Syntax
ibarcodeCount = Me.Scanner1.BarCodeReadFullPage
str1 = "Total " + Str(ibarcodeCount) + " BarCode detected" + Chr(13) + Chr(10)

For i = 0 To ibarcodeCount - 1
strTmp = Me.Scanner1.BarCodeGetType(i) + " score:" + Str(Me.Scanner1.BarCodeGetScore(i)) + " value:" + Me.Scanner1.BarCodeGetValue(i)
str1 = str1 + Chr(13) + Chr(10) + strTmp
Next

MsgBox str1