ReplaceSmartLabelBarcodeData¶
Description
Replaces the value of the barcode object of the label file (*.slex) selected by SelectSmartLabelFile.
Syntax
INT ReplaceSmartLabelBarcodeData( INT i_hdl, INT i_mapId, LPCTSTR i_barcodeData )
Parameter
i_hdl
API handle
Specify the API handle retrieved by OpenMonPrinter.
i_mapId
ID of the barcode object
Specify the lD of the barcode object mapped on the label file (*.slex) of the app.
The ID of the barcode object can be confirmed on the UI display of the app.

UI display of SII Layout Editor
i_barcodeData
Barcode data to replace
Specify the barcode data to replace.
For the character string to be specified, be sure to terminate with NULL.
The maximum length of text data is 5000 characters including NULL. If barcode data exceeding 5000 characters is specified, characters after 5001 will be discarded.
If the barcode data is empty, the barcode data will not be printed in the barcode object specified by i_mapId.
Even if the character string to be replaced is invalid barcode data, an error is not caused. Make sure that the barcode data is valid before specifying it.
Return value
On success: Returns 0. On failure: Returns an error code. See "Error Code List" for details of the error code.
Remarks
- When SelectSmartLabelFile is not called, this API fails.
- For ReplaceSmartLabelBarcodeDataA, it is encoded with the language set with SetSmartLabelCharacterSet.
- See "Printing Label Function" for details of the printing using the label file.