Functions
Methods

Functions

long BarcodeData (VARIANT *Buffer, long BuffSize)
 This function copies the decoded barcode data to the specified buffer.
 
boolean Execute ()
 This function starts the decoding process.
 
boolean LoadConfiguration (BSTR FileName)
 This function reads in the configuration from the file specified by FileName.
 
boolean SaveConfiguration (BSTR FileName)
 This function saves the current configuration in a file with the name FileName.
 
boolean Teach ()
 This method starts the teaching process of a dotted Data Matrix code.
 

Detailed Description

Function Documentation

long BarcodeData ( VARIANT *  Buffer,
long  BuffSize 
)

This function copies the decoded barcode data to the specified buffer.

In contrast to the BarcodeText property, this method can be used to transmit binary-coded barcodes in which the code value zero can occur.

Parameters
[in,out]BufferBuffer used to copy decoded barcode in.
[in]BuffSizeSize of buffer.
Returns
Number of received bytes.
boolean Execute ( )

This function starts the decoding process.

The result of the decoding process can be found in the relevant property fields.

Attention
If errors occur, OnError events are triggered.
Returns
TRUE on success, FALSE otherwise or if barcode could not be found.
boolean LoadConfiguration ( BSTR  FileName)

This function reads in the configuration from the file specified by FileName.

Parameters
[in]FileNameName of the file to be loaded.
Returns
TRUE on success, FALSE otherwise (if the file could not be found).
boolean SaveConfiguration ( BSTR  FileName)

This function saves the current configuration in a file with the name FileName.

Parameters
[in]FileNameName of the file to be saved.
Returns
TRUE on success, FALSE otherwise (if the file could not be created).
boolean Teach ( )

This method starts the teaching process of a dotted Data Matrix code.

If errors occur, OnError events are triggered. The result of the teaching process can be found in the relevant property fields. If the teaching is successful the four properties of Data Matrix DataMatrixMinSize, DataMatrixMaxSize, DataMatrixContrastMin, and DataMatrixModulwidth are changed.

Attention
The method is new in CVB 8.0 with Barcode Version 2.2.
Returns
TRUE on success, FALSE otherwise (e.g., if no barcode could be found).
Related Topics:
Properties of DataMatrix
DataMatrixExTypes Property