|
|
OPOS and Microsoft .NETAn Microsoft .NET application wishing to utilize retail devices has at least two available approaches. OPOS via COM Interop Microsoft .NET's COM interoperability support allows straightforward integration of the OPOS Common Control Objects into .NET applications. One can directly reference COM objects, and Visual Studio will build the required interoperability layer. Alternatively, available below are OPOS CCO interoperability assemblies created by the Microsoft TLBIMP utility. All use the "POS.Devices" namespace, and the class names are consistent with the CCO names. Creating an instance of the class will instantiate the corresponding OPOS CCO, after which time one may call OPOS methods and properties, plus add handlers for events. A typical .NET POS application will include the following in its software stack. Ensure that all of these components are installed, plus registered and/or configured as needed:
The pre-built assemblies plus a sample application may be found below. POS for .NET Microsoft's Point of Service for .NET is currently at version 1.12. Excerpting from its home documentation page, POS for .NET "is a class library that enables POS developers to apply Microsoft .NET technologies in their products. It provides a simple and consistent interface for.NET Framework applications to interact with POS devices, a set of interfaces and classes created to help Vendors write applications for common devices such as Cash Drawers or Line Displays, and support for Windows Plug and Play functionality." To download, search this page for "POS for .NET". The POS for .NET v1.12 download page states that its supported operating systems are "Windows Embedded for Point of Service; Windows Server 2003 Service Pack 1; Windows Vista Business; Windows Vista Enterprise; Windows XP Service Pack 2". The UnifiedPOS specification contains an appendix that describes the POS for .NET relationship to UnifiedPOS. OPOS Assemblies for .NETThe complete set of OPOS Assemblies are available in a ZIP file, or they may be installed via the CCO 1.13.001 Windows Installer file. A simple test program is also available.
A screenshot of the POSPrinter1 sample application follows, followed by the NCR Emulator Service Object which was used for this run. The following activities occur while running it:
The following screen shots are from Visual Studio 2008, with the POSPrinter1 solution loaded. The Solution Explorer shows the references, including references to the POSPrinter and OPOS Constants assemblies: The Object Browser shows the classes and interfaces in the OPOSPOSPrinter assembly: Last updated: 2010-06-26 |
|
Web Site navigation aids: Table-of-Contents. Search.Send mail to
webmaster@monroecs.com with
questions or comments about this web site.
|