Skip to content

SetSmartLabelCharacterSet

Description

Specifies the codepage of the text data to replace by ReplaceSmartLabelTextDataA or ReplaceSmartLabelBarcodeDataA.

Syntax

  
    INT SetSmartLabelCharacterSet( INT i_hdl, BYTE i_charSet )
  

Parameter

i_hdl

API handle
Specify the API handle retrieved by OpenMonPrinter.

i_charSet

Codepage to use
i_charSet to specify is shown below.

Characterset Character Code Table i_charSet
System character set (System Locale) Depends on the system 0
Thai Thai (Code Page874) 1
Japanese Japanese (Code Page932 / Shift-JIS) 2
Simplified Chinese Simplified Chinese (Code Page936) 3
Korean Korean (Code Page949) 4
Traditional Chinese Traditional Chinese (Code Page950) 5
Central European Central European (Code Page1250) 6
Cyrillic Cyrillic (Code Page1251) 7
Latin Latin (Code Page1252) 8
Greek Greek (Code Page1253) 9
Turkish Turkish (Code Page1254) 10
Hebrew Hebrew (Code Page1255) 11
Arabic Arabic (Code Page1256) 12
Baltic Baltic (Code Page1257) 13
Vietnamese Vietnamese (Code Page1258) 14

Return value

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

Remarks

    • The codepage applicable APIs after executing this API are shown below.
      • ReplaceSmartLabelTextDataA
      • ReplaceSmartLabelBarcodeDataA
    • When the codepage is not set with this API, it is encoded with "System character set".
    • Codepage specification by this API is canceled by CloseMonPrinter.