|
|
|||||||||
|
|
|
|
|
|
|||||
|
Help -> Methods -> ScanBarCode The Softek Barcode Reader SDK extracts barcode information from images and bitmaps. ScanBarCodeOverview ScanBarCode(file) Scan the specified TIF, BMP or JPEG file for bar code strings and return the number of bar codes found in the file. The following formats are supported:
If the returned value is less than 0 then an error has occurred:
n is the index to the barcode string to be retrieved and is indexed from 1. The following strings can be returned for patch codes - "Type I", "Type II", "Type III", "Type IV", "Type VI" and "Type T". Visual Basic using the OCX count = [form.]SoftekBarcode.ScanBarCode(file) Visual Basic using the DLL
Private Declare Function stScanBarCode Lib "SoftekBarcode" (ByVal strFile As
String) As Integer Visual Basic using COM
oBar = CreateObject("SoftekATL.Barcode") VB.Net using the DLL
Private Declare Function stScanBarCode Lib "SoftekBarcode" (ByVal strFile As
String) As Short VB.Net using the SoftekBarcode Wrapper Class
Dim barcode As SoftekBarcode VB.Net using the SoftekBarcodeLib Managed Component Dim barcode As SoftekBarcodeLib.BarcodeReader Visual C++ Using the OCX short ScanBarCode(file) Visual C++ Using the DLL short __stdcall stScanBarCode(LPCTSTR file); |
| © 1998-2006 Softek Software Ltd. All rights reserved. |