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

UI display of SII Layout Editor
i_text
Text data to replace
Specify the text data to replace.
For the character string to be specified, be sure to terminate with NULL.
The maximum length of text data is 10000 characters including NULL.
If the text data is empty, the text data will not be printed in the text object specified by i_mapId.
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 ReplaceSmartLabelTextDataA, it is encoded with the language set by SetSmartLabelCharacterSet.
- See "Printing Label Function" for details of the printing using the label file.