PrintSmartLabelImageData¶
Description
Prints labels selected by SelectSmartLabelFile.
Syntax
INT PrintSmartLabelImageData( INT i_hdl, DWORD i_timeout, BYTE i_option )
Parameter
i_hdl
API handle
Specify the API handle retrieved by OpenMonPrinter.
i_timeout
Timeout period
Specifies the time to wait for success of this API in milliseconds (ms).
The valid range is from 3000 to 90000.
When the value is specified less than 3000, the time is set to 3000 ms.
When the value is specified more than 90000, the time is set to 90000 ms.
i_option
Reserved
Specify 0.
Return value
On success: Returns 0. On failure: Returns an error code. See "Error Code List" for details of the error code.
Remarks
- When replacement of data for each object fails, this API fails.
- When a label file where an object is not mapped is specified, this API fails.
- When LockPrinter is being called by another process, calling this API fails.
- When the printer is not connected or in a communication disabled state, this API fails.
- When printing for the first time after starting the computer, it may take some time before printing starts.
- See "Printing Label Function" for details of the printing using the label file.