General information
Category:
Coding, syntax & commands
>Hi..All
>I develop application about Point of sale ..I want contect cash draw for my application..I check vendor about cash draw ..Then told me contect to serial port (com port) and send signal from comm port ..How I can do about my application when I want open cash draw?
>
>Narong
There are 3 ways to do it.
The best way depends on the hardware you're using.
1st Way (If the Cash drawer connects to the serial Port)
Use some ActiveX to take low level control of the com port (this is a hard way)
2nd Way (If your ticket printer supports connection of a cash drawer)
Send the right character string to the printer (see the printers manual).
Most ticket printers support connecting a cash drawer
3rd Way (the better and easiest way)
If you're using an Epson or Siemens Ticket Printer (some other printers also support it - Star doesn't)
You can use an OPOS ActiveX. This is a standard developed by Microsoft in conjunction with hardware producers. You can download the OCX from the Printer Producer Site. This ActiveX enable you to control POS hardware connected to the computer via standard methods. For the cash drawer, you can have any brand of cash drawer as long as it connects to the printer. After you install the OCX, the code to open the drawer is something like:
xopos.drawer.open(alltrim("StandardP"))
xopos.drawer.deviceenabled=.t.
xopos.drawer.opendrawer
xopos.drawer.close
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only