EPSON OPOS ADK Sample Program

Device:   ElectronicJournal


Step 1 Storing PosPrinter Output.

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, ClaimDevice, AddMarker, ReleaseDevice, Close
New Property DeviceEnabled, StorageEnabled

Step 2 Printing the data saved in storage medium.

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.

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.
While in AsyncMode, the following events will be notified:
  • OutputCompleteEvent
  • DataEvent
  • ErrorEvent

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

New Method QueryContent, PrintContentFile
New Property AsyncMode, DataEventEnabled

Step 4 Using Suspend Mode.

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

Using RetrieveStatistics method, obtains the ElectronicJournal device statistics.

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

New Method RetrieveStatistics
New Property