EPSON OPOS ADK for .NET Sample Program

Device:   POS Printer


Step 1 Print "Hello OPOS".(C# Sample, VB.NET Sample)

Normal printing without any errors.

New Method

Open, Claim, PrintNormal, Release, Close

New Property

DeviceEnabled

 

 

Step 2 Print various types of characters.(C# Sample, VB.NET Sample )

Here is an example of receipt.

New Method

 

New Property

 

 

 

Step 3 Print bitmaps.(C# Sample, VB.NET Sample)

Before printing bitmaps on receipts, send the bitmap image to the printer using the new method, SetBitmap.

New Method

SetBitmap

New Property

RecLetterQuality

 

 

Step 4 Print barcodes.(C# Sample, VB.NET Sample)

To print barcodes, follow the sample program provided.

New Method

PrintBarCode

New Property

RecLetterQuality

 

 

Step 5 Writing a module that is independent of device types.(C# Sample, VB.NET Sample)

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.

New Method

 

New Property

CapRecPapercut, CapRecPresent, CapRecBitmap, CapRecBarCode, MapMode, RecLineChars, RecLineWidth, RecLinesToPaperCut

 

 

Step 6 Use the TransactionPrint.(C# Sample, VB.NET Sample)

The advantages of using TransactionPrint are as follows.

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

 

New Method

TransactionPrint

New Property

 

 

 

Step 7 Use the asynchronous outputting.(C# Sample, VB.NET Sample)

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.

New Method

 

New Property

AsyncMode

 

 

Step 8 Rotate printing.(C# Sample, VB.NET Sample)

Prints on a receipt using Rotated Printing mode.

This sample program does not support 58mm paper.

New Method

RotatePrint

New Property

CapRecLeft90, RecSidewaysMaxLines, RecSidewaysMaxChars, RecLineSpacing, RecLineHeight

 

 

Step 9 Print on slips.(C# Sample, VB.NET Sample)

Include handling for insertion and removal.

New Method

BeginInsertion, EndInsertion, Beginremoval, Endremoval

New Property

CapSlpPresent, CapSlpLineChars, CapSlpLineWidth

 

 

Step 10 Adding errors.(C# Sample, VB.NET Sample)

Adding error handling for Step 7,8,and 9.
This sample program supports TM-L90 with Peeler.

New Method

 

New Property

 

 

 

Step 11 Use the EPSON original methods.(C# Sample, VB.NET Sample)

The EPSON original methods (DirectIO, ESC, etc.) provide various useful functions.
This sample program supports TM-L90 with Peeler.

New Method

DirectIO

New Property

 

 

 

Step 12 Rotated-Prints Bitmaps and Barcodes.(C# Sample, VB.NET Sample)

Prints Bitmaps and Barcodes on receipts using the Rotated Printing mode of Bitmap and Barcode.
This sample program supports TM-L90 with Peeler.

New Method

 

New Property

RecBitmapRotationList, RecBarcodeRotationList

 

 

Step 13 Obtains the statistics of the device.(C# Sample, VB.NET Sample)

Obtains the statistics of the device.
This sample program supports TM-L90 with Peeler.

New Method

RetrieveStatistics

New Property

CapStatisticsReporting

 

 

Step 14 Printing in Page Mode.(C# Sample, VB.NET Sample)

Prints Coupon Ticket by creating multiple print areas and print them in Page Mode.
This sample program supports TM-L90 with Peeler.

New Method

PageModePrint

New Property

CapRecPageMode, PageModeStation, PageModeDescriptor, PageModePrintArea, PageModeArea, PageModeHorizontalPosition, PageModeVerticalPosition, PageModePrintDirection

 

 

Step 15 Print Memory Bitmap.(C# Sample, VB.NET Sample)

Using the PrintMemoryBitmap function, prints a bitmap object.

New Method

PrintMemoryBitmap

New Property

 

 

Step 16 Multi-tone Prints.(C# Sample, VB.NET Sample)

The coupon will be printed using the Multi-tone print function.

New Method

PrintBitmap

New Property