bardecode.com
barcode reading software
  • Home
  • Download
  • Purchase
  • SDK Licensing
  • Pricing
    • Windows SDK Price List
    • Windows SDK with PDF Extension Price List
    • PDF Extension For Windows Price List
    • Linux SDK Price List
    • Multi-Platform Toolkit for .Net/Docker Price List
    • BardecodeFiler Desktop Only Price List
    • BardecodeFiler Windows Service Price List
    • DOS Command Prompt Barcode Tool Price List
  • Products
    • Barcode Reader Toolkit for Windows
    • Barcode Reader Toolkit for Linux
    • BardecodeFiler Application Desktop Only
    • BardecodeFiler Application & Windows Service
    • Windows DOS Command Prompt Barcode Tool
    • Multi-Platform Barcode Reader Toolkit for .Net Standard on Docker
    • Aquaforest’s Autobahn DX
  • Knowledge Base
    • Documentation
    • Specifications
  • News
  • Contact
    • About Us
    • Resellers
    • Links
Select Page ...

News

GetBarString - retrieve a barcode value

admin October 26, 2009 Documentation, Knowledge Base No Comments

Syntax

 

.net/java/ocx: Object.GetBarString(n)
com: Object.BarString(n)
dll: mtGetBarString (hBarcode, n)

Parameters

hBarcode Handle to an instance of the barcode toolkit (dll only).
n 1-based index to barcode to be queried.

Return Value

GetBarString retrieves a barcode string that has been detected by the ScanBarCode method.  In .net applications, useSystem.Runtime.InteropServices.Marshal.PtrToStringAnsi to convert the IntPtr returned by mtGetBarString to a String.

Remarks

  • · Check digit characters are only output if the ShowCheckDigit property is set to True.
  • · UPC-E barcodes are a zero-suppressed version of EAN-13 and as such are converted to EAN-13 format unless theConvertUPCEToEAN13 property is set to False.
  • · Code 39 barcodes are not returned with the start/stop * characters.
  • · Codabar barcode value are always returned with the start/stop character pair, which can be either a/t, b/n, c/* or d/n.
  • · The following strings can be returned for patch codes – “Type I”, “Type II”, “Type III”, “Type IV”, “Type VI” and “Type T”.

Win32 dll declarations:

VB.Net:

Private Declare Function mtGetBarString Lib “SoftekBarcode” (ByVal hBarcode As System.IntPtr, ByVal nBarCode As Short) As System.IntPtr

Visual C++:

 

extern “C” {
LPCSTR __stdcall mtGetBarString(HANDLE hBarcode, short index);
}


 

 

← GetBarStringDirection – retrieve the orientation of a barcode
ExportXMLSettings – export xml settings →
admin

  • Copyright © 2021 Softek Software Ltd. All Rights Reserved