
Epic 880TM Programmers Notes
POSPrinter Activex Control (POSPrinter OCX):
This is not a driver; it is a software component that provides a connection from an application to a port driver. This allows an application to communicate “directly” with a printer. This approach allows an application to send the commands, it wants to, to the printer. This approach is similar to the “old DOS days” of talking to a POS printer.
PC Hardware |
|
| |
Windows Operating System |
|
| |
| Port | Port | |
| Driver | ||
| Hardware | ||
|
| ||
POS Application | Serial | Serial | |
POSPrinter.ocx | |||
| OR | OR | |
| Parallel | Parallel | |
Printer | OR | ||
| |||
| OR | USB bus. | |
Driver | USB | OR | |
| Ethernet | ||
|
| ||
| OR | OR | |
| Eternet | Whatever. | |
| OR |
| |
| Whatever. |
|
Figure 35 POSPrinter OCX
When to use the POSPrinter OCX:
When the application writer wants complete control of what is sent to the printer. The application must take the responsibility of sending the correct codes to the printer as well as detecting error conditions, and graceful recovery from error situations.
When not to use the POSPrinter OCX:
When you do not want to deal with the
Page 246 |
|
|
|