Skip to content

ReplaceSmartLabelImageData

Description

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

Syntax

INT ReplaceSmartLabelImageData( INT i_hdl, INT i_mapId, LPCTSTR i_fname )

Parameter

i_hdl

API handle
Specify the API handle retrieved by OpenMonPrinter.

i_mapId

ID of the image object
Specify the lD of the image object mapped on the label file (*.slex) of the app.
The ID of the image object can be confirmed on the UI display of the app.

LE Image Object Map ID
UI display of SII Layout Editor

i_fname

Image data to replace
Specify the file name of the image data to replace with the path.
Supported file extensions are .bmp, .gif, .jpg, .jpeg, .tiff, .tif, and .png.
However, even the supported extensions may not be registered depending on the format.

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.
    • Make the file specified by this API readable by all processes that call the API.
    • See "Printing Label Function" for details of the printing using the label file.