EPSON OPOS ADK Sample Program

Device:   POS Printer


Step 1 Print "Hello OPOS".

Normal printing without any errors.
New Method Open, ClaimDevice, PrintNormal, ReleaseDevice, Close
New Property DeviceEnabled

Step 2 Print various types of characters.

Here is an example of receipt.
This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method
    New Property

    Step 3 Print bitmaps.

    Before printing bitmaps on receipts, send the bitmap image to the printer using the new method, SetBitmap.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method SetBitmap
    New Property RecLetterQuality

    Step 4 Print barcodes.

    To print barcodes, follow the sample program provided.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method PrintBarCode
    New Property RecLetterQuality

    Step 5 Writing a module that is independent of device types.

    Using OPOS enables to make a device-independent applicaition easier.
    This step shows how to change the Step 4 application to a device independent application.

    • Regardless of a printer model, a bitmap is printed as half size of the paper width.
    • Regardless of a printer model, goods and the prices are printed along the edge of the paper.
    • Regardless of a printer model, spaces between the lines of text are fixed.
    • Regardless of a printer model, the barcode is printed with a height of 1cm.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method
    New Property CapRecPapercut, CapRecPresent, CapRecBitmap, CapRecBarCode, MapMode, RecLineChars, RecLineWidth, RecLinesToPaperCut

    Step 6 Use the TransactionPrint.

    The advantages of using TransactionPrint are as follows.

    • Performace improvement by outputting multiple methods at once.
    • Error handling can be performed in one location.

    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method TransactionPrint
    New Property

    Step 7 Use the asynchronous outputting.

    Asynchronous print enables the operation of a mouse or keyboard while printing.
    The EPSON OPOS enables to asynchronous output by changing the value of the AsyncMode property.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method
    New Property AsyncMode

    Step 8 Rotate printing.

    Prints on a receipt using Rotated Printing mode.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method RotatePrint
    New Property CapRecLeft90, RecSidewaysMaxLines, RecSidewaysMaxChars, RecLineSpacing, RecLineHeight

    Step 9 Print on slips.

    Include handling for insertion and removal.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method BeginInsertion, EndInsertion, Beginremoval, Endremoval
    New Property CapSlpPresent, CapSlpLineChars, CapSlpLineWidth

    Step 10 Adding errors.

    Adding error handling for Step 7,8,and 9.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method
    New Property

    Step 11 Use the EPSON original methods.

    The EPSON original methods (DirectIO, ESC, etc.) provide various useful functions.
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method DirectIO
    New Property

    Step 12 Rotated-Prints Bitmaps and Barcodes.

    Prints Bitmaps and Barcodes on receipts using the Rotated Printing mode of Bitmap and Barcode. (UPOS 1.7)
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method
    New Property RecBitmapRotationList, RecBarcodeRotationList

    Step 13 Obtains the statistics of the device.

    Obtains the statistics of the device. (UPOS 1.8)
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method RetrieveStatistics
    New Property CapStatisticsReporting

    Step 14 TM-L90 (with Peeler model) sample program.

    This step was created based on the step 13.
    Some functions between Step 2 and Step 13 have been made usable with TM-L90 (with Peeler model).
    Please refer to the source code of each step for the unused functions.
    This sample program only supports TM-L90 with Peeler.
    New Method
    New Property

    Step 15 PageMode-Prints.

    Prints coupon ticket on receipts using the PageMode Printing mode. (UPOS 1.9)
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method PageModePrint
    New Property CapRecPageMode, PageModeArea, PageModeDescriptor, PageModeHorizontalPosition, PageModePrintArea, PageModePrintDirection, PageModeStation, PageModeVerticalPosition

    Step 16 TM-P60IIPEELER sample program.

    This step was created based on the step 14.
    Using the DirectIO method , print the merchandise label that consist of a line and a rectangle.
    The available type and size of paper:
    Roll paper(width) 60.0 mm
    Label paper25.4 mm by 56.0 mm

    Please refer to the source code of each step for the unused functions.
    This sample program only supports TM-P60IIPEELER.
    New Method
    New Property

    Step 17

    This step is not supported in English edition.

    Step 18 Prints bitmap that registered with memory.

    This step was created based on the step 15.
    Prints bitmaps on receipts using the PrintMemoryBitmap method. (UPOS 1.11)
    This sample program is not available for the following devices.
  • TM-L90 (with Peeler model)
  • TM-P60IIPEELER
  • New Method PrintMemoryBitmap
    New Property

    Step 19 Multi-tone Prints.

    This step was created based on the step 18.
    The coupon will be printed using the Multi-tone print function.
    This sample program only supports devices with Multi-tone Function.
    For details of support devices, please refer to the "EPSON OPOS ADK MANUAL APPLICATION DEVELOPMENT GUIDE POSPrinter (TM Series)" manual.
    New Method
    New Property