AllowDuplicateValues
Overview
The AllowDuplicateValues property can be used to stop the toolkit from reporting duplicate barcodes on the same page in an image. This can be useful for images where the middle section of a barcode is badly damaged or missing. With the property set to TRUE the toolkit may report that there are 2 barcodes of the same type and value. With the property set to FALSE it would assume that the 2 barcodes were part of a single barcode and set the bounding rectangle accordingly.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.AllowDuplicateValues = value
Visual Basic using the DLL
Private Declare Function stGetAllowDuplicateValues Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetAllowDuplicateValues Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetAllowDuplicateValues (value)
value = stGetAllowDuplicateValues ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.AllowDuplicateValues = value
value = oBar.AllowDuplicateValues
VB.Net using the DLL
Private Declare Function stGetAllowDuplicateValues Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetAllowDuplicateValues Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetAllowDuplicateValues (value)
value = stGetAllowDuplicateValues ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetAllowDuplicateValues(value)
value = barcode.GetAllowDuplicateValues()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.AllowDuplicateValues = value
value = barcode.AllowDuplicateValues
Visual C++ Using the OCX
BOOL GetAllowDuplicateValues() ;
void SetAllowDuplicateValues(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetAllowDuplicateValues();
BOOL __stdcall stSetAllowDuplicateValues(BOOL
bNewValue);
BitmapResolution
Overview
BitmapResolution is the resolution of the bitmap to be scanned, in dots per inch. This value only effects the expected size of the quiet area around a barcode and for most images can be left to the default value.
Default value = 200
Visual Basic using the OCX
[form.]SoftekBarcode.BitmapResolution = value
Visual Basic using the DLL
Private Declare Function stGetBitmapResolution Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetBitmapResolution Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetBitmapResolution( value)
value = stGetBitmapResolution()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.BitmapResolution = value
value = oBar.BitmapResolution
VB.Net using the DLL
Private Declare Function stGetBitmapResolution Lib
"SoftekBarcode" () As Short
Private Declare Function stSetBitmapResolution Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetBitmapResolution(value)
value = stGetBitmapResolution()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetBitmapResolution(value)
value = barcode.GetBitmapResolution()
VB.Net using the SoftekBarcodeLib Managed Component
Not implemented yet
Visual C++ Using the OCX
short GetBitmapResolution() ;
void SetBitmapResolution (short value);
Visual C++ Using the DLL
short __stdcall stGetBitmapResolution() ;
short __stdcall stSetBitmapResolution (short value);
Code39Checksum
Overview
When True the toolkit will only report Code 39 barcodes where the last character is a valid checksum for the rest of the barcode. The toolkit expects a Code 39 checksum to be calculated using modulus-43.
For example, the barcode "7654R" encodes the number "7654" with a checksum character of "R". Using default settings the toolkit will report this barcode as "7654R" because it does not expect the last character to be a checksum. If ShowCheckDigit is false and Code39Checksum is true then the toolkit will validate the "R" as the checksum and then return the string "7654". This also applies if an application is using the NumericBarcode property. Unless Code39Checksum is set to True then this barcode would not be reported by the toolkit because it contains a non-numeric character.
Default Value: False
Visual Basic using the OCX
[form.]SoftekBarcode.Code39Checksum = value
Visual Basic using the DLL
Private Declare Function stGetCode39Checksum Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetCode39Checksum Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetCode39Checksum (value)
value = stGetCode39Checksum ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.Code39Checksum = value
value = oBar.Code39Checksum
VB.Net using the DLL
Private Declare Function stGetCode39Checksum Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetCode39Checksum Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetCode39Checksum (value)
value = stGetCode39Checksum ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetCode39Checksum(value)
value = barcode.GetCode39Checksum()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.Code39Checksum = value
value = barcode.Code39Checksum
Visual C++ Using the OCX
BOOL GetCode39Checksum() ;
void SetCode39Checksum(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetCode39Checksum();
BOOL __stdcall stSetCode39Checksum(BOOL
bNewValue);
ColorThreshold
Overview
ColorThreshold is the color value used by the control to decide whether a pixel should be considered to be black or white. The value should be in the range 0 to 255.
If ColorThreshold has a value of 0 then the toolkit will perform a median analysis of the image to determine the best value to use.
Default value = 128
Visual Basic using the OCX
[form.]SoftekBarcode.ColorThreshold = value
Visual Basic using the DLL
Private Declare Function stGetColorThreshold Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetColorThreshold Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetColorThreshold (value)
value = stGetColorThreshold ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ColorThreshold = value
value = oBar.ColorThreshold
VB.Net using the DLL
Private Declare Function stGetColorThreshold Lib
"SoftekBarcode" () As Short
Private Declare Function stSetColorThreshold Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetBitmapResolution(value)
value = stGetBitmapResolution()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetColorThreshold(value)
value = barcode.GetColorThreshold()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ColorThreshold = value
value = barcode.ColorThreshold
Visual C++ Using the OCX
short GetColorThreshold() ;
void SetColorThreshold (short value);
Visual C++ Using the DLL
short __stdcall stGetColorThreshold() ;
short __stdcall stSetColorThreshold (short value);
ConvertUPCEToEAN13
Overview
When set to TRUE the toolkit will convert type UPC-E barcodes into EAN-13.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ConvertUPCEToEAN13 = value
Visual Basic using the DLL
Private Declare Function stGetConvertUPCEToEAN13 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetConvertUPCEToEAN13 Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetConvertUPCEToEAN13 (value)
value = stGetConvertUPCEToEAN13 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ConvertUPCEToEAN13 = value
value = oBar.ConvertUPCEToEAN13
VB.Net using the DLL
Private Declare Function stGetConvertUPCEToEAN13 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetConvertUPCEToEAN13 Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetConvertUPCEToEAN13 (value)
value = stGetConvertUPCEToEAN13 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetConvertUPCEToEAN13(value)
value = barcode.GetConvertUPCEToEAN13()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ConvertUPCEToEAN13 = value
value = barcode.ConvertUPCEToEAN13
Visual C++ Using the OCX
BOOL GetConvertUPCEToEAN13() ;
void SetConvertUPCEToEAN13(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetConvertUPCEToEAN13();
BOOL __stdcall stSetConvertUPCEToEAN13(BOOL
bNewValue);
LineJump
Overview
When the OCX scans an image for a barcode string it does not scan every line of the image. The LineJump setting controls how many scan lines are missed between checks for a barcode. A LineJump value of 1 means that every scan line in the image will be checked. A lower value for LineJump will impact the performance of the OCX but may be useful for poor quality images.
Default value = 1
Visual Basic using the OCX
[form.]SoftekBarcode.LineJump = value
Visual Basic using the DLL
Private Declare Function stGetLineJump Lib "SoftekBarcode"
() As Long
Private Declare Function stSetLineJump Lib "SoftekBarcode"
(ByVal newValue As Long) As Long
stSetLineJump (value)
value = stGetLineJump ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.LineJump = value
value = oBar.LineJump
VB.Net using the DLL
Private Declare Function stGetLineJump Lib "SoftekBarcode"
() As Integer
Private Declare Function stSetLineJump Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetLineJump (value)
value = stGetLineJump ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetLineJump(value)
value = barcode.GetLineJump()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.LineJump = value
value = barcode.LineJump
Visual C++ Using the OCX
long GetLineJump() ;
void SetLineJump (long value);
Visual C++ Using the DLL
long __stdcall stGetLineJump() ;
long __stdcall stSetLineJump (long value);
ErrorCorrection
Overview
Some barcodes cannot be read because the process of scanning or faxing has split or merged bars together. When ErrorCorrection is set to True to toolkit will, where possible, make a best guess at such barcodes.
Note that this property currently only applies to Code 39 and Code 39 Extended barcodes.
Default Value: False
Visual Basic using the OCX
[form.]SoftekBarcode.ErrorCorrection = value
Visual Basic using the DLL
Private Declare Function stGetErrorCorrection Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetErrorCorrection Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetErrorCorrection (value)
value = stGetErrorCorrection ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ErrorCorrection = value
value = oBar.ErrorCorrection
VB.Net using the DLL
Private Declare Function stGetErrorCorrection Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetErrorCorrection Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetErrorCorrection (value)
value = stGetErrorCorrection ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetErrorCorrection(value)
value = barcode.GetErrorCorrection()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ErrorCorrection = value
value = barcode.ErrorCorrection
Visual C++ Using the OCX
BOOL GetErrorCorrection() ;
void SetErrorCorrection(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetErrorCorrection();
BOOL __stdcall stSetErrorCorrection(BOOL
bNewValue);
ExtendedCode39
Overview
When True the toolkit will attempt to decode Code 39 barcodes using the extended symbol set. The extended symbol set uses 2 normal Code 39 characters to represent each character and contains the full ASCII character set.
Note that if the toolkit is unable to decode the string in the extended symbol set then it is left as a normal Code 39 barcode.
Default Value: False
Visual Basic using the OCX
[form.]SoftekBarcode.ExtendedCode39 = value
Visual Basic using the DLL
Private Declare Function stGetExtendedCode39 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetExtendedCode39 Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetExtendedCode39 (value)
value = stGetExtendedCode39 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ExtendedCode39 = value
value = oBar.ExtendedCode39
VB.Net using the DLL
Private Declare Function stGetExtendedCode39 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetExtendedCode39 Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetExtendedCode39 (value)
value = stGetExtendedCode39 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetExtendedCode39(value)
value = barcode.GetExtendedCode39()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ExtendedCode39 = value
value = barcode.ExtendedCode39
Visual C++ Using the OCX
BOOL GetExtendedCode39() ;
void SetExtendedCode39(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetExtendedCode39();
BOOL __stdcall stSetExtendedCode39(BOOL
bNewValue);
MaxLength
Overview
MaxLength defines the largest length for a barcode string, including checksum characters.
Default value = 999
Visual Basic using the OCX
[form.]SoftekBarcode.MaxLength = value
Visual Basic using the DLL
Private Declare Function stGetMaxLength Lib "SoftekBarcode"
() As Short
Private Declare Function stSetMaxLength Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetMaxLength (value)
value = stGetMaxLength ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MaxLength = value
value = oBar.MaxLength
VB.Net using the DLL
Private Declare Function stGetMaxLength Lib "SoftekBarcode"
() As Short
Private Declare Function stSetMaxLength Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetMaxLength (value)
value = stGetMaxLength ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMaxLength(value)
value = barcode.GetMaxLength()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MaxLength = value
value = barcode.MaxLength
Visual C++ Using the OCX
short GetMaxLength();
void SetMaxLength(short value) ;
Visual C++ Using the DLL
short __stdcall stGetMaxLength();
short __stdcall stSetMaxLength(short newValue);
MinLength
Overview
MinLength defines the smallest length for a barcode string, including checksum characters.
Default value = 2
Visual Basic using the OCX
[form.]SoftekBarcode.MinLength = value
Visual Basic using the DLL
Private Declare Function stGetMinLength Lib "SoftekBarcode"
() As Short
Private Declare Function stSetMinLength Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetMinLength (value)
value = stGetMinLength ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MinLength = value
value = oBar.MinLength
VB.Net using the DLL
Private Declare Function stGetMinLength Lib "SoftekBarcode"
() As Short
Private Declare Function stSetMinLength Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetMinLength (value)
value = stGetMinLength ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMinLength(value)
value = barcode.GetMinLength()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MinLength = value
value = barcode.MinLength
Visual C++ Using the OCX
short GetMinLength();
void SetMinLength(short value) ;
Visual C++ Using the DLL
short __stdcall stGetMinLength();
short __stdcall stSetMinLength(short newValue);
MinOccurrence
Overview
When the OCX scans the image for barcode it counts the number of times each barcode string occurrs. If the count for a string is the same or greater than PrefOccurrence then the barcode string is counted as a positive match. If no string can be found this way then the OCX looks for strings that occurred with a count of at least MinOccurrence and counts these as positive matches.
Default value = 2
Visual Basic using the OCX
[form.]SoftekBarcode.MinOccurrence = value
Visual Basic using the DLL
Private Declare Function stGetMinOccurrence Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetMinOccurrence Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetMinOccurrence (value)
value = stGetMinOccurrence ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MinOccurrence = value
value = oBar.MinOccurrence
VB.Net using the DLL
Private Declare Function stGetMinOccurrence Lib
"SoftekBarcode" () As Short
Private Declare Function stSetMinOccurrence Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetMinOccurrence (value)
value = stGetMinOccurrence ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMinOccurrence(value)
value = barcode.GetMinOccurrence()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MinOccurrence = value
value = barcode.MinOccurrence
Visual C++ Using the OCX
int GetMinOccurrence() ;
void SetMinOccurrence (int value);
Visual C++ Using the DLL
short __stdcall stGetMinOccurrence();
short __stdcall stSetMinOccurrence(short nNewValue);
MinSpaceBarWidth
Overview
MinSpaceBarWidth is the minimum acceptable size for a space between the bars in a barcode. Anything smaller than this value will be ignored.
Default value = 1
Visual Basic using the OCX
[form.]SoftekBarcode.MinSpaceBarWidth = value
Visual Basic using the DLL
Private Declare Function stGetMinSpaceBarWidth Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetMinSpaceBarWidth Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetMinSpaceBarWidth (value)
value = stGetMinSpaceBarWidth ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MinSpaceBarWidth = value
value = oBar.MinSpaceBarWidth
VB.Net using the DLL
Private Declare Function stGetMinSpaceBarWidth Lib
"SoftekBarcode" () As Short
Private Declare Function stSetMinSpaceBarWidth Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetMinSpaceBarWidth (value)
value = stGetMinSpaceBarWidth ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMinSpaceBarWidth(value)
value = barcode.GetMinSpaceBarWidth()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MinSpaceBarWidth = value
value = barcode.MinSpaceBarWidth
Visual C++ Using the OCX
short GetMinSpaceBarWidth() ;
void SetMinSpaceBarWidth(short value);
Visual C++ Using the DLL
short __stdcall stGetMinSpaceBarWidth();
short __stdcall stSetMinSpaceBarWidth(short nNewValue);
MultipleRead
Overview
Normally the OCX stops at the first positive match for a barcode. When MultipleRead is TRUE the OCX will check the entire image for barcode strings and record each positive match.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.MultipleRead = value
Visual Basic using the DLL
Private Declare Function stGetMultipleRead Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetMultipleRead Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetMultipleRead (value)
value = stGetMultipleRead ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.MultipleRead = value
value = oBar.MultipleRead
VB.Net using the DLL
Private Declare Function stGetMultipleRead Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetMultipleRead Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetMultipleRead (value)
value = stGetMultipleRead ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetMultipleRead(value)
value = barcode.GetMultipleRead()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.MultipleRead = value
value = barcode.MultipleRead
Visual C++ Using the OCX
BOOL GetMultipleRead() ;
void SetMultipleRead (BOOL value)
Visual C++ Using the DLL
BOOL __stdcall stGetMultipleRead();
BOOL __stdcall stSetMultipleRead(BOOL bNewValue);
NoiseReduction
Overview
If the NoiseReduction property is none zero then the ScanBarCode method will run an image through a noise reduction filter before scanning for barcodes . The filter removes marks from an image that are unlikely to be part of a barcode. A larger value for NoiseReduction will remove larger marks from the image. This increases the chances of finding a barcode in a poor quality image but also increases the time taken to process an image. A typical value for NoiseReduction is 10.
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.NoiseReduction = value
Visual Basic using the DLL
Private Declare Function stGetNoiseReduction Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetNoiseReduction Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetNoiseReduction (value)
value = stGetNoiseReduction ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.NoiseReduction = value
value = oBar.NoiseReduction
VB.Net using the DLL
Private Declare Function stGetNoiseReduction Lib
"SoftekBarcode" () As Short
Private Declare Function stSetNoiseReduction Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetNoiseReduction (value)
value = stGetNoiseReduction ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetNoiseReduction(value)
value = barcode.GetNoiseReduction()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.NoiseReduction = value
value = barcode.NoiseReduction
Visual C++ Using the OCX
BOOL GetNoiseReduction() ;
void SetNoiseReduction(short value);
Visual C++ Using the DLL
short __stdcall stGetNoiseReduction();
short __stdcall stSetNoiseReduction(short nNewValue);
PageNo
Overview
PageNo is a 1 based index that specifies the page to be scanned in an image. A value of zero indicates that every page will be scanned
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.PageNo = value
Visual Basic using the DLL
Private Declare Function stGetPageNo Lib "SoftekBarcode" ()
As Integer
Private Declare Function stSetPageNo Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetPageNo (value)
value = stGetPageNo ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.PageNo = value
value = oBar.PageNo
VB.Net using the DLL
Private Declare Function stGetPageNo Lib "SoftekBarcode" ()
As Short
Private Declare Function stSetPageNo Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetPageNo (value)
value = stGetPageNo ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPageNo(value)
value = barcode.GetPageNo()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.PageNo = value
value = barcode.PageNo
Visual C++ Using the OCX
short GetPageNo() ;
void SetPageNo(short value);
Visual C++ Using the DLL
short __stdcall stGetPageNo();
short __stdcall stSetPageNo(short nNewValue);
Pattern
Overview
The Pattern property is a regular expression that each barcode found in an image is compared against. The toolkit will only return barcodes that match the pattern.
The toolkit use POSIX extended regular expression syntax.
Examples:
"ABCDEF" will match all barcodes containing "ABCDEF" (e.g "XYZABCDEFXYZ") .
"ABC[0-9]+" will match all barcodes containing "ABC" followed by one or more digits (e.g XYZABC71827XYZ").
"^ABC[0-9]+$" will match barcodes that only consist of "ABC" followed by one or more digits (e.g "ABC12345").
Note that if a Code 39 barcode uses a checksum character and the Pattern property is used to specify the entire string (ie. the last character of the pattern is $) then the Code39Checksum property must also be set to True.
Default value = NULL
Visual Basic using the OCX
[form.]SoftekBarcode.Pattern = value
Visual Basic using the DLL
Private Declare Function stGetPattern Lib "SoftekBarcode" ()
As String
Private Declare Function stSetPattern Lib "SoftekBarcode"
(ByVal newValue As String) As String
stSetPattern (value)
value = stGetPattern ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.Pattern = value
value = oBar.Pattern
VB.Net using the DLL
Private Declare Function stGetPattern Lib "SoftekBarcode" ()
As String
Private Declare Function stSetPattern Lib "SoftekBarcode"
(ByVal newValue As String) As String
stSetPattern (value)
value = stGetPattern ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPattern(value)
value = barcode.GetPattern()
VB.Net using the SoftekBarcodeLib Managed Component
Not implemented.
Visual C++ Using the OCX
BSTR GetPattern();
void SetPattern(BSTR value) ;
Visual C++ Using the DLL
LPCSTR __stdcall stGetPattern();
LPCSTR __stdcall stSetPattern(LPCSTR newValue);
PdfBpp
Overview
PdfBpp is the number of bit-sper-pixel to be used when converting a pdf file into image format, before scanning for a barcode. The value should be either 1, 8 or 24.
Default value = 1
Visual Basic using the OCX
[form.]SoftekBarcode.PdfBpp = value
Visual Basic using the DLL
Private Declare Function stGetPdfBpp Lib "SoftekBarcode" ()
As Integer
Private Declare Function stSetPdfBpp Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetPdfBpp (value)
value = stGetPdfBpp ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.PdfBpp = value
value = oBar.PdfBpp
VB.Net using the DLL
Private Declare Function stGetPdfBpp Lib "SoftekBarcode" ()
As Short
Private Declare Function stSetPdfBpp Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetPdfBpp (value)
value = stGetPdfBpp ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPdfBpp(value)
value = barcode.GetPdfBpp()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.PdfBpp = value
value = barcode.PdfBpp
Visual C++ Using the OCX
short GetPdfBpp() ;
void SetPdfBpp(short value);
Visual C++ Using the DLL
short __stdcall stGetPdfBpp();
short __stdcall stSetPdfBpp(short nNewValue);
PdfDpi
Overview
PdfDpi is the number of dots-per-inch to be used when converting a pdf file into image format, before scanning for a barcode.
Default value = 300
Visual Basic using the OCX
[form.]SoftekBarcode.PdfDpi = value
Visual Basic using the DLL
Private Declare Function stGetPdfDpi Lib "SoftekBarcode" ()
As Integer
Private Declare Function stSetPdfDpi Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetPdfDpi (value)
value = stGetPdfDpi ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.PdfDpi = value
value = oBar.PdfDpi
VB.Net using the DLL
Private Declare Function stGetPdfDpi Lib "SoftekBarcode" ()
As Short
Private Declare Function stSetPdfDpi Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetPdfDpi (value)
value = stGetPdfDpi ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPdfDpi(value)
value = barcode.GetPdfDpi()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.PdfDpi = value
value = barcode.PdfDpi
Visual C++ Using the OCX
short GetPdfDpi() ;
void SetPdfDpi(short value);
Visual C++ Using the DLL
short __stdcall stGetPdfDpi();
short __stdcall stSetPdfDpi(short nNewValue);
Photometric
Overview
The Photometric property determines how the toolkit interprets a pixel value in a bitmap. A photometric value of 0 means that a pixel value of 0 if considered to represent the color black. A photometric value of 1 means that a pixel value of 0 is considered to represent the color white. This property is only used in conjunction with the ScanBarcodeFromBitmap method. The ScanBarcodeFromDIB method does not refer to this property because the color map is stored within the DIB.
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.Photometric = value
Visual Basic using the DLL
Private Declare Function stGetPhotometric Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetPhotometric Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetPhotometric (value)
value = stGetPhotometric ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.Photometric = value
value = oBar.Photometric
VB.Net using the DLL
Private Declare Function stGetPhotometric Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetPhotometric Lib "SoftekBarcode"
(ByVal newValue As Integer) As Integer
stSetPhotometric (value)
value = stGetPhotometric ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPhotometric(value)
value = barcode.GetPhotometric()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.Photometric = value
value = barcode.Photometric
Visual C++ Using the OCX
BOOL GetPhotometric() ;
void SetPhotometric(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetPhotometric();
BOOL __stdcall stSetPhotometric(BOOL
bNewValue);
PrefOccurrence
Overview
When the OCX scans the image for barcode it counts the number of times each barcode string occurrs. If the count for a string is the same or greater than PrefOccurrence then the barcode string is counted as a positive match. If no string can be found this way then the OCX looks for strings that occurred with a count of at least MinOccurrence and counts these as positive matches.
Default value = 5
Visual Basic using the OCX
[form.]SoftekBarcode.PrefOccurrence = value
Visual Basic using the DLL
Private Declare Function stGetPrefOccurrence Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetPrefOccurrence Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetPrefOccurrence (value)
value = stGetPrefOccurrence ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.PrefOccurrence = value
value = oBar.PrefOccurrence
VB.Net using the DLL
Private Declare Function stGetPrefOccurrence Lib
"SoftekBarcode" () As Short
Private Declare Function stSetPrefOccurrence Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetPrefOccurrence (value)
value = stGetPrefOccurrence ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetPrefOccurrence(value)
value = barcode.GetPrefOccurrence()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.PrefOccurrence = value
value = barcode.PrefOccurrence
Visual C++ Using the OCX
short GetPrefOccurrence() ;
void SetPrefOccurrence (short value) ;
Visual C++ Using the DLL
short __stdcall stGetPrefOccurrence();
short __stdcall stSetPrefOccurrence(short nNewValue);
QuietZoneSize
Overview
When the toolkit checks for a barcode on a scan line in an image, it ignores those parts of the line that are not preceded by the number of white pixels specified by QuietZoneSize.
Default value = 10% of image resolution (i.e. 10 pixels in a 100dpi image)
Visual Basic using the OCX
[form.]SoftekBarcode.QuietZoneSize = value
Visual Basic using the DLL
Private Declare Function stGetQuietZoneSize Lib
"SoftekBarcode" () As Integer
Private Declare Function stSetQuietZoneSize Lib
"SoftekBarcode" (ByVal newValue As Integer) As Integer
stSetQuietZoneSize (value)
value = stGetQuietZoneSize ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.QuietZoneSize = value
value = oBar.QuietZoneSize
VB.Net using the DLL
Private Declare Function stGetQuietZoneSize Lib
"SoftekBarcode" () As Short
Private Declare Function stSetQuietZoneSize Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetQuietZoneSize (value)
value = stGetQuietZoneSize ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetQuietZoneSize(value)
value = barcode.GetQuietZoneSize()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.QuietZoneSize = value
value = barcode.QuietZoneSize
Visual C++ Using the OCX
short GetQuietZoneSize () ;
void SetQuietZoneSize (short value) ;
Visual C++ Using the DLL
short __stdcall stGetQuietZoneSize();
short __stdcall stSetQuietZoneSize(short nNewValue);
ReadCodabar
Overview
When set to TRUE the toolkit will search for type 39 barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadCodabar = value
Visual Basic using the DLL
Private Declare Function stGetReadCodabar Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCodabar Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCodabar (value)
value = stGetReadCodabar ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadCodabar = value
value = oBar.ReadCodabar
VB.Net using the DLL
Private Declare Function stGetReadCodabar Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCodabar Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCodabar (value)
value = stGetReadCodabar ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadCodabar(value)
value = barcode.GetReadCodabar()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadCodabar = value
value = barcode.ReadCodabar
Visual C++ Using the OCX
BOOL GetReadCodabar() ;
void SetReadCodabar(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadCodabar();
BOOL __stdcall stSetReadCodabar(BOOL
bNewValue);
ReadCode128
Overview
When set to TRUE the toolkit will search for type 128 barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadCode128 = value
Visual Basic using the DLL
Private Declare Function stGetReadCode128 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCode128 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode128 (value)
value = stGetReadCode128 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadCode128 = value
value = oBar.ReadCode128
VB.Net using the DLL
Private Declare Function stGetReadCode128 Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCode128 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode128 (value)
value = stGetReadCode128 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadCode128(value)
value = barcode.GetReadCode128()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadCode128 = value
value = barcode.ReadCode128
Visual C++ Using the OCX
BOOL GetReadCode128() ;
void SetReadCode128(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadCode128();
BOOL __stdcall stSetReadCode128(BOOL
bNewValue);
ReadCode25
Overview
When set to TRUE the toolkit will search for type 2 of 5 interleaved barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadCode25 = value
Visual Basic using the DLL
Private Declare Function stGetReadCode25 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadCode25 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode25 (value)
value = stGetReadCode25 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadCode25 = value
value = oBar.ReadCode25
VB.Net using the DLL
Private Declare Function stGetReadCode25 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadCode25 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode25 (value)
value = stGetReadCode25 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadCode25(value)
value = barcode.GetReadCode25()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadCode25 = value
value = barcode.ReadCode25
Visual C++ Using the OCX
BOOL GetReadCode25() ;
void SetReadCode25(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadCode25();
BOOL __stdcall stSetReadCode25(BOOL
bNewValue);
ReadCode25ni
Overview
When set to TRUE the toolkit will search for type 2 of 5 non-interleaved barcodes.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadCode25ni = value
Visual Basic using the DLL
Private Declare Function stGetReadCode25ni Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCode25ni Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode25ni (value)
value = stGetReadCode25ni ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadCode25ni = value
value = oBar.ReadCode25ni
VB.Net using the DLL
Private Declare Function stGetReadCode25ni Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadCode25ni Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode25ni (value)
value = stGetReadCode25ni ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadCode25ni(value)
value = barcode.GetReadCode25ni()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadCode25ni = value
value = barcode.ReadCode25ni
Visual C++ Using the OCX
BOOL GetReadCode25ni() ;
void SetReadCode25ni(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadCode25ni();
BOOL __stdcall stSetReadCode25ni(BOOL
bNewValue);
ReadCode39
Overview
When set to TRUE the toolkit will search for type 39 barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadCode39 = value
Visual Basic using the DLL
Private Declare Function stGetReadCode39 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadCode39 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode39 (value)
value = stGetReadCode39 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadCode39 = value
value = oBar.ReadCode39
VB.Net using the DLL
Private Declare Function stGetReadCode39 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadCode39 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadCode39 (value)
value = stGetReadCode39 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadCode39(value)
value = barcode.GetReadCode39()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadCode39 = value
value = barcode.ReadCode39
Visual C++ Using the OCX
BOOL GetReadCode39() ;
void SetReadCode39(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadCode39();
BOOL __stdcall stSetReadCode39(BOOL
bNewValue);
ReadEAN13
Overview
When set to TRUE the toolkit will search for EAN-13 type barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadEAN13 = value
Visual Basic using the DLL
Private Declare Function stGetReadEAN13 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadEAN13 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadEAN13 (value)
value = stGetReadEAN13 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadEAN13 = value
value = oBar.ReadEAN13
VB.Net using the DLL
Private Declare Function stGetReadEAN13 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadEAN13 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadEAN13 (value)
value = stGetReadEAN13 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadEAN13(value)
value = barcode.GetReadEAN13()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadEAN13 = value
value = barcode.ReadEAN13
Visual C++ Using the OCX
BOOL GetReadEAN13() ;
void SetReadEAN13(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadEAN13();
BOOL __stdcall stSetReadEAN13(BOOL bNewValue);
ReadEAN8
Overview
When set to TRUE the toolkit will search for EAN-8 type barcodes.
Default value = TRUE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadEAN8 = value
Visual Basic using the DLL
Private Declare Function stGetReadEAN8 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadEAN8 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadEAN8 (value)
value = stGetReadEAN8 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadEAN8 = value
value = oBar.ReadEAN8
VB.Net using the DLL
Private Declare Function stGetReadEAN8 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadEAN8 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadEAN8 (value)
value = stGetReadEAN8 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadEAN8(value)
value = barcode.GetReadEAN8()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadEAN8 = value
value = barcode.ReadEAN8
Visual C++ Using the OCX
BOOL GetReadEAN8() ;
void SetReadEAN8(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadEAN8();
BOOL __stdcall stSetReadEAN8(BOOL bNewValue);
ReadUPCA
Overview
When set to TRUE the toolkit will search for UPC-A type barcodes.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadUPCA = value
Visual Basic using the DLL
Private Declare Function stGetReadUPCA Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadUPCA Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadUPCA (value)
value = stGetReadUPCA ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadUPCA = value
value = oBar.ReadUPCA
VB.Net using the DLL
Private Declare Function stGetReadUPCA Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadUPCA Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadUPCA (value)
value = stGetReadUPCA ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadUPCA(value)
value = barcode.GetReadUPCA()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadUPCA = value
value = barcode.ReadUPCA
Visual C++ Using the OCX
BOOL GetReadUPCA() ;
void SetReadUPCA(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadUPCA();
BOOL __stdcall stSetReadUPCA(BOOL bNewValue);
ReadUPCE
Overview
When set to TRUE the toolkit will search for UPC-E type barcodes.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadUPCE = value
Visual Basic using the DLL
Private Declare Function stGetReadUPCE Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadUPCE Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadUPCE (value)
value = stGetReadUPCE ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadUPCE = value
value = oBar.ReadUPCE
VB.Net using the DLL
Private Declare Function stGetReadUPCE Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadUPCE Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadUPCE (value)
value = stGetReadUPCE ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadUPCE(value)
value = barcode.GetReadUPCE()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadUPCE = value
value = barcode.ReadUPCE
Visual C++ Using the OCX
BOOL GetReadUPCE() ;
void SetReadUPCE(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadUPCE();
BOOL __stdcall stSetReadUPCE(BOOL bNewValue);
ReadPatchCodes
Overview
When set to TRUE the toolkit will search for patch code barcodes.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadPatchCodes = value
Visual Basic using the DLL
Private Declare Function stGetReadPatchCodes Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadPatchCodes Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetReadPatchCodes (value)
value = stGetReadPatchCodes ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadPatchCodes = value
value = oBar.ReadPatchCodes
VB.Net using the DLL
Private Declare Function stGetReadPatchCodes Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadPatchCodes Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetReadPatchCodes (value)
value = stGetReadPatchCodes ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadPatchCodes(value)
value = barcode.GetReadPatchCodes()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadPatchCodes = value
value = barcode.ReadPatchCodes
Visual C++ Using the OCX
BOOL GetReadPatchCodes() ;
void SetReadPatchCodes(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadPatchCodes();
BOOL __stdcall stSetReadPatchCodes(BOOL
bNewValue);
ReadPDF417
NOTE: ONLY FUNCTIONS IN THE 2-D VERSION OF THE TOOLKIT.
Overview
When set to TRUE the toolkit will search for PDF-417 barcodes.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ReadPDF417 = value
Visual Basic using the DLL
Private Declare Function stGetReadPDF417 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadPDF417 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadPDF417 (value)
value = stGetReadPDF417 ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadPDF417 = value
value = oBar.ReadPDF417
VB.Net using the DLL
Private Declare Function stGetReadPDF417 Lib "SoftekBarcode"
() As Boolean
Private Declare Function stSetReadPDF417 Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadPDF417 (value)
value = stGetReadPDF417 ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadPDF417(value)
value = barcode.GetReadPDF417()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadPDF417 = value
value = barcode.ReadPDF417
Visual C++ Using the OCX
BOOL GetReadPDF417() ;
void SetReadPDF417(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadPDF417();
BOOL __stdcall stSetReadPDF417(BOOL
bNewValue);
ReadNumeric
Overview
When True the toolkit will only report numeric barcodes. Note that this the same as setting the Pattern property to the value "^[0-9]+$".
Default Value: False
Visual Basic using the OCX
[form.]SoftekBarcode.ReadNumeric = value
Visual Basic using the DLL
Private Declare Function stGetReadNumeric Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadNumeric Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadNumeric (value)
value = stGetReadNumeric ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ReadNumeric = value
value = oBar.ReadNumeric
VB.Net using the DLL
Private Declare Function stGetReadNumeric Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetReadNumeric Lib "SoftekBarcode"
(ByVal newValue As Boolean) As Boolean
stSetReadNumeric (value)
value = stGetReadNumeric ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetReadNumeric(value)
value = barcode.GetReadNumeric()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ReadNumeric = value
value = barcode.ReadNumeric
Visual C++ Using the OCX
BOOL GetReadNumeric() ;
void SetReadNumeric(BOOL value);
Visual C++ Using the DLL
BOOL __stdcall stGetReadNumeric();
BOOL __stdcall stSetReadNumeric(BOOL
bNewValue);
ScanDirection
Overview
ScanDirection is a mask that controls the directions in which the barcode reader will look for barcodes in an image, and is built from the following values:
For example, a value of 5 (1 + 4) means that the reader will look for barcode from left to right and right to left.
Note: This property replaces the Rotation property used in previous versions.
Default value = 15
Visual Basic using the OCX
[form.]SoftekBarcode.ScanDirection = value
Visual Basic using the DLL
Private Declare Function stGetScanDirection Lib
"SoftekBarcode" () As Short
Private Declare Function stSetScanDirection Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetScanDirection (value) value = stGetScanDirection ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ScanDirection = value
value = oBar.ScanDirection
VB.Net using the DLL
Private Declare Function stGetScanDirection Lib
"SoftekBarcode" () As Short
Private Declare Function stSetScanDirection Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetScanDirection (value) value = stGetScanDirection ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetScanDirection(value)
value = barcode.GetScanDirection()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ScanDirection = value
value = barcode.ScanDirection
Visual C++ Using the OCX
BOOL GetScanDirection() ;
void SetScanDirection(short value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetScanDirection();
BOOL __stdcall stSetScanDirection(short
bNewValue);
ShowCheckDigit
Overview
When set to TRUE the OCX will include the barcode check digit in the returned string.
Note: This property only applies to barcode types with built in check digits (e.g Code 128).
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.ShowCheckDigit = value
Visual Basic using the DLL
Private Declare Function stGetShowCheckDigit Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetShowCheckDigit Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetShowCheckDigit (value) value = stGetShowCheckDigit ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.ShowCheckDigit = value
value = oBar.ShowCheckDigit
VB.Net using the DLL
Private Declare Function stGetShowCheckDigit Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetShowCheckDigit Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetShowCheckDigit (value) value = stGetShowCheckDigit ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetShowCheckDigit(value)
value = barcode.GetShowCheckDigit()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.ShowCheckDigit = value
value = barcode.ShowCheckDigit
Visual C++ Using the OCX
BOOL GetShowCheckDigit() ;
void SetShowCheckDigit(BOOL value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetShowCheckDigit();
BOOL __stdcall stSetShowCheckDigit(BOOL
bNewValue);
SkewTolerance
Overview
SkewTolerance controls the maximum angle from the horizontal or vertical at which a barcode will be recognised by the toolkit. The table below shows the possible values for this property along with the approximate maximum angles:
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.SkewTolerance = value
Visual Basic using the DLL
Private Declare Function stGetSkewTolerance Lib
"SoftekBarcode" () As Short
Private Declare Function stSetSkewTolerance Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetSkewTolerance (value) value = stGetSkewTolerance ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.SkewTolerance = value
value = oBar.SkewTolerance
VB.Net using the DLL
Private Declare Function stGetSkewTolerance Lib
"SoftekBarcode" () As Short
Private Declare Function stSetSkewTolerance Lib
"SoftekBarcode" (ByVal newValue As Short) As Short
stSetSkewTolerance (value) value = stGetSkewTolerance ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetSkewTolerance(value)
value = barcode.GetSkewTolerance()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Long
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.SkewTolerance = value
value = barcode.SkewTolerance
Visual C++ Using the OCX
BOOL GetSkewTolerance() ;
void SetSkewTolerance(short value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetSkewTolerance();
BOOL __stdcall stSetSkewTolerance(short
bNewValue);
TifSplitMode
Overview
TifSplitMode controls the way in which multi-page TIF files are split into sub-files when the TifSplitPath property is set. A value of 0 means that the sub-files will each start on a page with a bar code (or page 1). A value of 1 means that each sub-file will terminate on a page with a barcode (or the last page).
For example, a 6 page TIF file with barcodes on pages 2 and 5 will split as follows:
TifSplitMode = 0: First sub-file contains page 1. Second sub-file contains pages 2, 3 and 4. Third sub-file contains pages 5 and 6.
TifSplitMode = 1: First sub-file contains pages 1 and 2. Second sub-file contains pages 3, 4 and 5. Third sub-file contains page 6.
Default value = 0
Visual Basic using the OCX
[form.]SoftekBarcode.TifSplitMode = value
Visual Basic using the DLL
Private Declare Function stGetTifSplitMode Lib
"SoftekBarcode" () As Short
Private Declare Function stSetTifSplitMode Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetTifSplitMode (value)
value = stGetTifSplitMode ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.TifSplitMode = value
value = oBar.TifSplitMode
VB.Net using the DLL
Private Declare Function stGetTifSplitMode Lib
"SoftekBarcode" () As Short
Private Declare Function stSetTifSplitMode Lib "SoftekBarcode"
(ByVal newValue As Short) As Short
stSetTifSplitMode (value)
value = stGetTifSplitMode ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetTifSplitMode(value)
value = barcode.GetTifSplitMode()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetTifSplitMode(value)
value = barcode.GetTifSplitMode()
VB.Net using the SoftekBarcodeLib Managed Component
Not implemented.
Visual C++ Using the OCX
BOOL GetTifSplitMode();
void SetTifSplitMode(BOOL value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetTifSplitMode();
BOOL __stdcall stSetTifSplitMode(BOOL newValue);
TifSplitPath
Overview
TifSplitPath is the file path template for splitting multi-page TIF files into sub-files. The sub-file page number is represented by %d in the template. The rule for splitting the TIF file is controlled by the TifSplitMode property.
e.g c:\tmp\output%d.tif
Default value = NULL
Visual Basic using the OCX
[form.]SoftekBarcode.TifSplitPath = value
Visual Basic using the DLL
Private Declare Function stGetTifSplitPath Lib
"SoftekBarcode" () As String
Private Declare Function stSetTifSplitPath Lib "SoftekBarcode"
(ByVal newValue As String) As String
stSetTifSplitPath (value)
value = stGetTifSplitPath ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.TifSplitPath = value
value = oBar.TifSplitPath
VB.Net using the DLL
Private Declare Function stGetTifSplitPath Lib
"SoftekBarcode" () As String
Private Declare Function stSetTifSplitPath Lib "SoftekBarcode"
(ByVal newValue As String) As String
stSetTifSplitPath (value)
value = stGetTifSplitPath ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetTifSplitPath(value)
value = barcode.GetTifSplitPath()
VB.Net using the SoftekBarcodeLib Managed Component
Not implemented.
Visual C++ Using the OCX
BSTR GetTifSplitPath();
void SetTifSplitPath(BSTR value) ;
Visual C++ Using the DLL
LPCSTR __stdcall stGetTifSplitPath();
LPCSTR __stdcall stSetTifSplitPath(LPCSTR newValue);
UseOverSampling
Overview
When UseOverSampling is TRUE the barcode reader samples 3 lines at a time (skipping 2 lines between each sample) and takes the average pixel value. This is useful for images containing both black and white speckles.
Default value = FALSE
Visual Basic using the OCX
[form.]SoftekBarcode.UseOverSampling= value
Visual Basic using the DLL
Private Declare Function stGetUseOverSampling Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetUseOverSampling Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetUseOverSampling (value)
value = stGetUseOverSampling ()
Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode")
.........
oBar.UseOverSampling = value
value = oBar.UseOverSampling
VB.Net using the DLL
Private Declare Function stGetUseOverSampling Lib
"SoftekBarcode" () As Boolean
Private Declare Function stSetUseOverSampling Lib
"SoftekBarcode" (ByVal newValue As Boolean) As Boolean
stSetUseOverSampling (value)
value = stGetUseOverSampling ()
VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode
..........
barcode.SetUseOverSampling(value)
value = barcode.GetUseOverSampling()
VB.Net using the SoftekBarcodeLib Managed Component
Dim barcode As SoftekBarcodeLib.BarcodeReader
Dim value As Bool
..........
barcode = New SoftekBarcodeLib.BarcodeReader()
..........
barcode.UseOverSampling = value
value = barcode.UseOverSampling
Visual C++ Using the OCX
BOOL GetUseOverSampling();
void SetUseOverSampling(BOOL value) ;
Visual C++ Using the DLL
BOOL __stdcall stGetUseOverSampling();
BOOL __stdcall stSetUseOverSampling(BOOL newValue);