Softek Software Barcode Reading Toolkits
HOME PRODUCTS DEVELOPERS STORE ABOUT US
Developer Home
Downloads
Sample Code
Support

Softek Barcode Reading SDK - VB.Net

The Softek Barcode Reading Toolkit extracts barcode information from image files and memory bitmaps. This page show how you can use the software in Visual Studio 2003 and Visual Studio 2005.

Use the following links to view code snippets for the 4 different interfaces commonly used from VB.Net...

Use the following download links to get your development started...

Download windows toolkit

Windows Toolkit 30 day evaluation

Download sample vbnet project

VB.Net sample project

.NET Managed Class Library with Visual Studio 2003

'Add a reference to SoftekBarcodeLib.dll

Dim barcode As SoftekBarcodeLib.BarcodeReader
barcode = New SoftekBarcodeLib.BarcodeReader

'Set properties
barcode.ReadCode128 = True

'Read barcodes
nBarCodes = barcode.ScanBarCode(Path)

'Get results
For i = 1 To nBarCodes
      strBarcode = barcode.GetBarString(i)

back to top

.NET Managed Class Library with Visual Studio 2005

'Add a reference to SoftekBarcodeLib2.dll

Dim barcode As SoftekBarcodeLib2.BarcodeReader
barcode = New SoftekBarcodeLib2.BarcodeReader

'Set properties
barcode.ReadCode128 = True

'Read barcodes
nBarCodes = barcode.ScanBarCode(Path)

'Get results
For i = 1 To nBarCodes
      strBarcode = barcode.GetBarString(i)

back to top

Standard Windows DLL

'See the example project for the function definitions for the SoftekBarcode dll file.
'Set properties
stSetReadCode128(True)

'Read barcodes
nBarCodes = stScanBarCode(Path)

'Get results
For i = 1 to nBarCodes
      strBarcode = stGetBarStringType(i)

back to top

COM Object

'Add reference to SoftekATL.dll
Dim oBarcode As SoftekATL.CBarcode
oBarcode = New SoftekATL.CBarcode

'Set properties
oBarcode.ReadCode128 = True

'Read barcodes
oBarcode.ScanBarCode(Path.ToString)
nBarCodes = oBarcode.BarCodeCount

'Get results
For i = 1 to nBarCodes
      strBarcode = oBarcode.BarString(i)

back to top

Adding References to Visual Studio

To add a reference in Visual Studio, select "Add Reference" from the Project menu.

To add a reference for the managed class library, browse for the SoftekBarcodeLib.dll file for VS 2003 and SoftekBarcodeLib2.dll for VS 2005 in your windows system folder.

To add a reference for the COM object, click on the COM tab and select SofteATL 1.0 Type Library from the list.

back to top