Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cash draw
Message
From
09/07/1999 03:32:33
 
 
To
07/07/1999 05:00:21
Narong Tohku
Knownet Co.,Ltd.
Bangkok, Thailand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00238157
Message ID:
00239293
Views:
11
>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
Map
View

Click here to load this message in the networking platform