Skip to content

ReplaceSmartLabelImageData

Description

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

Syntax

ErrorCode ReplaceSmartLabelImageData( int mapId, string fileName )

Parameter

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

fileName

Image data to replace
Specify the file name of the image data to replace.
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

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.