OPOS

Jun 08, 2008 1 Replies

Good evening,



I'm trying to create an interface to use a printer (with a communication protocol not compatibile with OPOS specific and windows driver) that have a proprietary comm. protocol...



My idea is to create a stub with a COM interface to implement an ole pos printer to allow with a custom receipt to send commands to this printer (it's a fiscal printer, but the hardware is compatible with tm epson printer).. I have the documentation of UnifiedPOS, and also documents of OPOS documents.. but no headers, library or samples ...



Anyone can help me with a basic support to implement the COM interface ? I would to write the software in C++, but if is possible also the c# using the package Microsoft.PointOfService assembly..



thank you cod


Hi. We've written a lot of stuff like this in vb & ms access. The trick is to write the proper code to a text file and use a baatch file to copy it to the printer port.

In access we do it like this: we make a reference to the windows script host model - wshom.ocx 'This sends variable values to the printer Open "C:\MyBeauty\label.bat" For Output As #1 Print #1, "copy C:\MyFolder\MyFile.dat lpt1" Close #1

'Run the batch file and exit DOS environment. 'This sends the printer file to the 'label printer (with the copy command).

retval = Shell(Environ$("COMSPEC") & " /C C:\MyBeauty\label.bat") hope that helps

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required