SetBarcodeValue

 

#include “BlackIceDEVMODE.h”

 

BOOL            SetBarcodeValue (BlackIceDEVMODE* pDevMode, LPCTSTR pValue);

Description

Sets the value of the barcode. This value is used for the barcode generation if SetBarcodeValueSource is set to BARCODE_STRING (0).

The maximum number of characters allowed depends on the set barcode type; in case of QR and PDF417 codes the error correction levels; and in case of QR, Datamatrix and PDF417 codes, the type of characters used (digits, alphanumeric, etc.). The allowed characters depend on the barcode type used. For more information, please refer to the manual.

The value is not validated by this function. The barcode will not be printed if unsupported characters are used, or the length of the string is longer than supported by the selected barcode type.

 

Parameters

BlackIceDEVMODE* pDevMode            - pointer to the BlackIceDEVMODE structure.

LPCTSTR pValue                                       - null-terminated string, pointer to the barcode value

Return value

TRUE on success, otherwise FALSE.

The value is not validated by this function. The barcode will not be printed if unsupported characters are used, or the length of the string is longer than supported by the selected barcode type.