Skip to content

ReplaceSmartLabelBarcodeData

Description

Replaces the value of the barcode object of the label file (*.slex) selected by SelectSmartLabelFile.

Syntax

ErrorCode ReplaceSmartLabelBarcodeData( int mapId, string barcodeData )

Parameter

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.

LE Barcode Object Map ID
UI display of SII Layout Editor

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 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

Returns an error code. See "Error Code List" for details of the error code.

Remarks

    • When SelectSmartLabelFile is not called, this API fails.
    • See "Printing Label Function" for details of the printing using the label file.