Skip to content

SendDataFile

Description

Registers the contents of the command definition file in the internal memory of the SDK.

Syntax

  
    INT SendDataFile( INT i_hdl, LPCTSTR i_fname )
  

Parameter

i_hdl

API handle
Specify the API handle retrieved by OpenMonPrinter.

i_fname

Command definition file name
Specify the name of a command definition file created in the predefined format.

Return value

On success: Returns 0.
On failure: Returns an error code. See "Error Code List" for details of the error code.

Remarks

    • The command definition registered by this API is discarded by CloseMonPrinter.
    • See "Command Definition File" for details of the command definition file.