Showing 27 Result(s)

Handling unicode encoded barcodes in Java

2-D barcode formats such as PDF-417 can encode a huge character set, which means that the barcode reader toolkit needs to encode characters outside the normal ASCII range. If the Encoding property is set to 2 then the toolkit will use Unicode encoding, whereby characters can be represented by the string &#N; where N is …

Understanding how the ReadUPCA property works

UPC-A barcodes are a subset of EAN-13. For example, the UPC-A barcode “016000336100” is the same as the EAN-13 barcode “0016000336100”. In fact, UPC-A barcodes are the sub-set of EAN-13 barcodes that start with a 0. The ReadEAN13 property controls whether any barcodes of type EAN-13 are recognized – and this includes UPC-A, whether or …

Unicode problems in Delphi 2009

Delphi 2009 developers may have found some problems passing strings to and from the toolkit. This seems to be down to unicode support in Delphi 2009 and can be resolved with some simple code changes. For example, in previous versions of Delphi you might have code similar to: NumCodes:=stScanBarCode(PChar(OpenDialog1.FileName)); …but in Delphi 9 this needs …

Code snippets for Visual C++

This article shows 2 simple visual c++ code snippets that use either the standard windows dll or the com object for the toolkit. Standard Windows DLL hBarcode = mtCreateBarcodeInstance() ;   //Set properties mtSetReadCode128 (hBarcode, 1) ; //Read barcodes int nBarCodes = mtScanBarCode(hBarcode, m_ImageFile) ; //Get results for (int i = 1; i <= nBarCodes; …

VB6 Code snippets

Use the following links to view code snippets for the 3 different interfaces commonly used from Visual Basic 6… ActiveX/OCX Interface ‘Add SoftekBarcode ActiveX Control module by selecting Components from the Projects ‘menu ‘Set properties SoftekBarcode1.ReadCode128 = True ‘Read barcodes nBarCodes = SoftekBarcode1.ScanBarCode(Path) ‘Get results For i = 1 To nBarCodes strBarcode = SoftekBarcode1.GetBarString(i) COM Object …