BIXOLON SPP-R200II Reference Manual
BIXOLON SPP-R200II Reference Manual

BIXOLON SPP-R200II Reference Manual

Sdk api reference guide mobile printer
Hide thumbs Also See for SPP-R200II:

Advertisement

SDK API Reference Guide
SPP-R200II
Mobile Printer
Rev. 1.00
http://www.bixolon.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SPP-R200II and is the answer not in the manual?

Questions and answers

Summary of Contents for BIXOLON SPP-R200II

  • Page 1 SDK API Reference Guide SPP-R200II Mobile Printer Rev. 1.00 http://www.bixolon.com...
  • Page 2: Table Of Contents

    SPP-R200II ■ Table of Contents 1. Manual Information......................3 1-1 Supporting O/S & Platform ..................3 1-2 Supporting Devices.....................3 2. Properties ........................4 2-1 CharacterSet (LONG R/W) ..................4 2-2 International CharacterSet (LONG R/W) ..............5 2-3 State (LONG R) ......................5 2-4 PowerValue (LONG R) ....................6 2-5 MsrMsgMode (BOOL W) ....................6...
  • Page 3: Manual Information

    This SDK Manual provides information on the dll files required for Windows application program development. We at BIXOLON maintain ongoing efforts to enhance and upgrade the functions and quality of all our products. In following, product specifications and/or user manual content may be changed without prior notice.
  • Page 4: Properties

    SPP-R200II 2. Properties The constant values used in the dll files provided are declared in the BxlConst.h file. The development environment was based on C++. 2-1 CharacterSet (LONG R/W) As the attribute that defines the Code Page of the printer, the default setting is BXL_CS_437.
  • Page 5: International Characterset (Long R/W)

    SPP-R200II 2-2 International CharacterSet (LONG R/W) As the attribute that defines the International Character Set of the printer, the default setting is BXL_ICS_USA. Use the SetInterChrSet(), GetInterChrSet()functions to set values or recall previously set values. The International Character Sets that can be used are as follows.
  • Page 6: Powervalue (Long R)

    SPP-R200II 2-4 PowerValue (LONG R) This attribute sets the battery capacity value of the printer. It can only be read, and is set every time the status of the printer battery changes. The values of this attribute can be recalled by using the GetPowerValue function.
  • Page 7: Methods

    SPP-R200II 3. Methods The functions disclosed in the provided module are declared in the ExportFunc.h file. The development environment was based on C++. 3-1 PrinterOpen In order to use the module, this function is enabled. For PDA types with different In/Out ports, port settings for each are required.
  • Page 8: Printerclose

    SPP-R200II 3-2 PrinterClose This function disables the SDK module. Functions related to printing and MSR are no longer available for use. long PrinterClose(); [Parameters] None [Return Values] Code Value Description BXL_SUCCESS Returns after function success 3-3 LineFeed This function dictates line feeding to the integer value conveyed for printing.
  • Page 9: Printbarcode

    SPP-R200II 3-4 PrintBarcode This function supports the 1-dimension and 2-dimension barcode printing function. long PrintBarcode( PCHAR Data, long symbology, long Height, long Width, long Alignment, long TextPosition [Parameters] * Data [in] ANSI Code Data ending with null. Barcode data to be printed are conveyed.
  • Page 10 SPP-R200II * Alignment [in] This value sets the barcode alignment. Code Value Description BXL_ALIGNMENT_LEFT Left-aligned BXL_ALIGNMENT_CENTER Centered BXL_ALIGNMENT_RIGHT Right-aligned * TextPosition [in] This value sets the print position of the barcode data. Two dimensional barcodes have only the BXL_BC_TEXT_NONE value.
  • Page 11: Printtext

    SPP-R200II 3-5 PrintText This function supports the text printing function. long PrintText( LPCTSTR Data, long Alignment, long Attribute, long TextSize [Parameters] * Data [in] Unicode Data ending with null. Conveys the barcode data to be printed. * Alignment [in] This value sets the barcode alignment.
  • Page 12 SPP-R200II * TextSize [in] This value sets the text size properties. The width and height values can be uplicated. Code Value Description BXL_TS_0WIDTH Width magnification set to x1 BXL_TS_1WIDTH Width magnification set to x2 BXL_TS_2WIDTH Width magnification set to x3...
  • Page 13: Printbitmap

    SPP-R200II 3-6 PrintBitmap This function prints image files. (Bmp, jpg, Gif) but standard ce o/s Only support bitmap format. long PrintBitmap ( LPCTSTR FileName, long Width, long Alignment, long Level [Parameters] * FileName [in] Expressed as a row of Unicode characters, the full path of the image file is set.
  • Page 14: Checkprinter

    SPP-R200II 3-7 CheckPrinter This function checks printer status and sets the printer status properties. long CheckPrinter (); [Parameters] None [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_READ_ERROR Failure to receive data...
  • Page 15: Msrreadcancel

    SPP-R200II 3-9 MsrReadCancel This function deactivates the MSR Ready status of the printer. Long MsrReadCancel(); [Parameters] None [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_WRITE_ERROR Failure to transmit data BXLMSR_NOTREADY Not in READY status 3-10 MsrReadTrack This function recalls MSR data.
  • Page 16: Directio

    SPP-R200II 3-11 DirectIO This function can send and read data defined by the user. Long DirectIO ( PCHAR Data, UINT uiWrite, PCHAR pRequet, UINT uiRead [Parameters] * PCHAR Data, [in] Data to be sent to the printer, data is ANSI code...
  • Page 17: Nextprintpos

    SPP-R200II 3-12 NextPrintPos If the label function is set, the paper is fed up to the next printing position. Long NextPrintPos (); [Parameters] None [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port...
  • Page 18: Gettrack2

    SPP-R200II 3-14 GetTrack2 This function returns MSR Track2 data. If the MSR is in read mode and NULL is returned, the card has not yet been read by the MSR. Strip the card with the MSR again. MSRReadCancel function can be used to cancel read mode.
  • Page 19: Msrreadfulltrack

    SPP-R200II 3-16 MsrReadFullTrack This function returns MSR Full Track data. If the MSR is in read mode and ERROR Code is returned, the card has not yet been read by the MSR. Strip the card with the MSR again. MSRReadCancel function can be used to cancel read mode.
  • Page 20: Msrread2Track

    SPP-R200II 3-18 MsrRead2Track This function returns MSR 2 Track data. If the MSR is in read mode and ERROR Code is returned, the card has not yet been read by the MSR. Strip the card with the MSR again. MSRReadCancel function can be used to cancel read mode.
  • Page 21: Initializeprinter

    SPP-R200II 3-20 InitializePrinter This method cancels conditions previously set and initializes the printer to the conditions having existed at power on. long InitializePrinter(); [Parameters] None. [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_STS_ERROR An error has occurred.
  • Page 22: Formfeed

    SPP-R200II [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_STS_ERROR An error has occurred. BXL_WRITE_ERROR Failure to transmit data 3-23 FormFeed This method prints all data collected in the printer buffer In page mode. After completion of printing, the printer is returned to standard mode.
  • Page 23: Setprintareainpagemode

    SPP-R200II 3-25 SetPrintAreaInPageMode This function sets the position and the size of the printing area in page mode as following. long SetPrintAreaInPageMode(long x, long y, long width, long height) [Parameters] * long x [in] Horizontal starting position * long y...
  • Page 24: Setabsoluteverticalprintpositioninpagemode

    SPP-R200II [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_STS_ERROR An error has occurred. BXL_WRITE_ERROR Failure to transmit data BXL_BAD_ARGUMENT Incorrect argument specified 3-27 SetAbsoluteVerticalPrintPositionInPageMode This method sets the absolute vertical print starting position to vertical or horizontal motion unit.
  • Page 25: Printdatainpagemode

    SPP-R200II 3-29 PrintDataInPageMode This method prints the data in the print buffer collectively in page mode. long PrintDataInPageMode() [Parameters] None.. [Return Values] Code Value Description BXL_SUCCESS Returns after function success BXL_NOT_OPENED Unable to open communication port BXL_STS_ERROR An error has occurred.
  • Page 26: Message

    SPP-R200II 4. Message If some events have occurred in printer, the SDK will send WM_MSR_ARRIVED (WM_USER+3) message. 4-1 BXL_LPARAM _MSR This message will be posted when the printer reads MSR Track data from MSR sensor. lParam = 0 wParam wParam is set by the following data.

This manual is also suitable for:

Spp-r300

Table of Contents