Citizen CMP-20 series Program Manual

Citizen CMP-20 series Program Manual

Mobile thermal printer windows ce and windows mobile module
Hide thumbs Also See for CMP-20 series:

Advertisement

MOBILE THERMAL PRINTER
MODEL CMP-20 series
Windows CE and Windows Mobile Module
Program Manual
Rev.1.00

Advertisement

Table of Contents
loading

Summary of Contents for Citizen CMP-20 series

  • Page 1 MOBILE THERMAL PRINTER MODEL CMP-20 series Windows CE and Windows Mobile Module Program Manual Rev.1.00...
  • Page 2: Table Of Contents

    TABLE OF CONTENTS Instruction 2. Method. 2.1. OpenPort 2.2. ClosePort 2.3. PrintNormal 2.4. PrintString 2.5. PrintText 2.6. PrintBitmap 2.7. PrintBarCode 2.8. LineFeed 2.9. PrinterCheck 2.10. status 2.11. PrintNVBitmap 2.12. MSRSelectTrack 2.13. MSRReadTrackDual 2.14. MSRReadCancel 2.15. PrintText2Image 2.16. PrintPDF417 2.17. PrintQRCode 3.
  • Page 3: Instruction

    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 -...
  • Page 4: Method

    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.
  • Page 5: Printnormal

    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.
  • Page 6: Printtext

    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...
  • Page 7: Printbitmap

    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...
  • Page 8: Printbarcode

    [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]...
  • Page 9: Linefeed

    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.
  • Page 10: Printercheck

    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]...
  • Page 11: Msrselecttrack

    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...
  • Page 12: Msrreadcancel

    - [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]...
  • Page 13: Printpdf417

    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.
  • Page 14: Printqrcode

    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 -...
  • Page 16: Command List Supported By Printnormal() Function In Ole Pos Command

    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.

Table of Contents