EPSON OPOS ADK for .NET Sample Program

Device:   ElectronicJournal


Step 1 Storing PosPrinter Output.(C# Sample, VB.NET Sample)

Saves PosPrinter output data in an ElectronicJournal file and assigns markers.

Printed content is the same as PosPrinter Sample Program Step 8.

New Method

Open, Claim, AddMarker, Release, Close

New Property

DeviceEnabled, StorageEnabled

   

   

Step 2 Printing the data saved in storage medium.(C# Sample, VB.NET Sample )

After specifying the start and end markers, prints the saved data between these markers. Erases all the data that has been saved in ElectronicJournal.

Printed content is the same as PosPrinter Sample Program Step 8.

New Method

PrintContent, EraseMedium

New Property

   

   

   

Step 3 Extract Content to a Separate file and print from file.(C# Sample, VB.NET Sample)

Extracts the data between the specifed start and end markers, and saves the data to a file. Prints the extracted data from the file. Demonstrates the use of ErrorResponse and ErrorEvent during an asynchronous process.

Printed content is the same as PosPrinter Sample Program Step 8.

While in AsyncMode, the following events will be notified:

  • OutputCompleteEvent
  • DataEvent
  • ErrorEvent

New Method

QueryContent, PrintContentFile

New Property

AsyncMode, DataEventEnabled

   

   

Step 4 Using Suspend Mode.(C# Sample, VB.NET Sample)

Suspends, Resumes and Cancels ElectronicJournal asynchronous processes.

The Suspend Button is Enabled only when the following State Events occur.

  • PosPrinter Paper Near End

Printed content is the same as PosPrinter Sample Program Step 8.

New Method

SuspendPrintContent, ResumePrintContent, CancelPrintContent

New Property

   

   

   

Step 5 Retrieve Device Statistics(C# Sample, VB.NET Sample)

Using RetrieveStatistics method, obtains the ElectronicJournal device statistics.

Printed content is the same as PosPrinter Sample Program Step 8.

New Method

RetrieveStatistics

New Property