Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cash drawer

Status
Not open for further replies.

mzda

Programmer
Jul 13, 2006
2
DE
Hi,
Are there any way to open a cash drawer via a print order ? I mean so that i send to the printer a page to be printed, but in the reality this page says to the printer to open the cash drawer.
 
If you mean you want a peripheral device's functions to be controlled from your own C# programs you will need to obtain (or build) a device driver to convert digital signals into signals the device can use.

I think you are talking about a cash register? If it is modern then its likely such a driver will be availiable.
 
You could also use the serial port to simply close the circuit to open the cash drawer. Do this in .net 2.0
 
You'll need to contact the cash drawer maker for the specifics, but they usually responds to sending a Ctrl+G (BEL character) to them.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
First of all thanks for the replies ;)
My problem is I use the printer to print documents and the printer is not only used from the pc, from where I want to open the cash drawer.
If I send a message to the printer to open the cash drawer while the printer is printing documents the serial port to the printer is blocked, so that I can't send the message to open it.
Therfore my idea is to send this message to open the cash drawer as a document to be printed, so that windows automatically add this document to the queue. And if this possible, the next problem is how to send this document to the top of the queue so that the message to open the cash drawer directly be done after the printer print the document, which is being printed.
 
Use another port for the device you are using. Your idea is very complecated and hard to accomplish.

Walid Magd (MCP)

The primary challenge of every software development team is to engineer the illusion of simplicity in the face of essential complexity.
-Grady Booch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top