1. Instruction. This Windows CE and Windows Mobile Module Program Manual describes the function which is exposed from DDL file needed in developing Windows CE & Mobile OS application. - 3 -...
2. Method. Functions for using in dll are defined in CITIZEN2.h file. Development environment is based on Evc++. 2.1. OpenPort This function is used for opening ports in order to use Moldule(DLL). long OpenPort( LPCTSTR PortName, long BaudRate [Parameter] * PortName - Pointer to a null-terminated Unicode string that specifies the name of the object, such as COM port.
2.3. PrintNormal This function is used for supporting text printing and OLE POS command. long PrintNormal( LPCTSTR Data [Parameter] * Data - Pointer to a null-terminated Unicode string. It is same as PrintNormal function in OLE POS Command. For command list, please refer to the Page-16 ~ Page-18. [Return Values] LK_SUCCESS : This value returns when a function succeeds.
2.5. PrintText This function is used for supporting text printing long PrintText( LPCTSTR Data, long Alignment, long Attribute, long TextSize [Parameter] * Data - Pointer to a null-terminated Unicode string. It sets Unicode text to print. * Alignment - This value is alignment. It sets text alignment. Variable Description LK_ALIGNMENT_LEFT...
Variable (Set up height ratio) Description LK_TXT_1HEIGHT Set up height ratio as x1 LK_TXT_2HEIGHT Set up height ratio as x2 LK_TXT_3HEIGHT Set up height ratio as x3 LK_TXT_4HEIGHT Set up height ratio as x4 LK_TXT_5HEIGHT Set up height ratio as x5 LK_TXT_6HEIGHT Set up height ratio as x6 LK_TXT_7HEIGHT...
[Return Values] LK_SUCCESS : This value returns when a function succeeds. LK_FAIL : This value returns when a function fails. 2.7. PrintBarCode This function is used for supporting barcode printing. long PrintBarCode( LPCTSTR Data, long Symbology, long Height, long Width, long Alignment, long TextPosition) [Parameter]...
Variable Description LK_ALIGNMENT_LEFT Left alignment LK_ALIGNMENT_CENTER Center alignment LK_ALIGNMENT_RIGHT Right alignment * TextPosition - This value is printing position of barcode HRI letters(barcode data). Variable Description LK_HRI_TEXT_NONE Do not print barcode data LK_HRI_TEXT_ABOVE Print barcode data above the barcode LK_HRI_TEXT_BELOW Print barcode data below the barcode [Return Values] LK_SUCCESS : This value returns when a function succeeds.
2.9. PrinterCheck This function is used for printer status checking. long PrinterCheck() [Return Values] LK_SUCCESS : This value returns when a function succeeds. LK_FAIL : This value returns when a function fails. 2.10. status This function is used for getting the printer status. long status() [Return Values]...
2.12. MSRSelectTrack This function change MSR Status to Ready status and sets the request of MSR data transmission according to arguments. long MSRSelectTrack (long SelectTrack) [Parameter] * SelectTrack SelectTrack MSR Track 0x31[0011 0001) Track 1 0x32[0011 0010) Track 2 0x33[0011 0011) Track 1,2 0x34[0011 0100) Track 3...
- [out, out] Buffer for reading MSR Track4 Data. [Return Values] LK_SUCCESS : This value returns when a function succeeds. LK_CHECKSUM_ERROR : Check-Sum Error Or Unknown Data Error returns. LK_TIMEOUT_ERROR : Timeout Error returns. 2.14. MSRReadCancel This function is used for changing MSR Ready status to normal status. long MSRReadCancel() [Return Values]...
TextData: [in] Pointer to a null-terminated Unicode string. It sets Unicode text to print. ReversePrint: [in] It sets the value of reverse printing. Variable Description LK_TTF_REVERSE_NO Not Reverse Printing. LK_TTF_REVERSE_YES Reverse Printing. [Return Values] LK_SUCCESS : returns after function success.. 2.16.
It sets the value for PDF417alignment Variable Description LK_ALIGNMENT_LEFT Left alignment LK_ALIGNMENT_CENTER Center alignment LK_ALIGNMENT_RIGHT Right alignment [Return Values] LK_SUCCESS : returns after function success.. 2.17. PrintQRCode The function is used to print QRCode using command. long PrintQRCode ( LPCTSTR Data, long Size, long ModuleSize, long ECLevel,...
Page 15
Alignment: [in] This value is QRCode alignment. It sets the value for QRCode alignment Variable Description LK_ALIGNMENT_LEFT Left alignment LK_ALIGNMENT_CENTER Center alignment LK_ALIGNMENT_RIGHT Right alignment [Return Values] LK_SUCCESS : returns after function success.. - 15 -...
3. Command list supported by PrintNormal() function in OLE POS Command. One Shots Perform indicated action. Name Data Remarks Paper cut ESC |#P Cuts receipt paper. The character ‘#’ is replaced by an ASCII decimal string telling the percentage cut desired. If ‘#’ is omitted, then a full cut is performed.
Page 17
Print Line Characteristics that are reset at the end of each print method or by a sequence. “Normal” Name Data Remarks Bold ESC |bC Prints in bold or double-strike. Underline ESC |#uC Prints with underline. The character ‘#’ is replaced by an ASCII decimal string telling the width of the underline in printer dot units.