Click here to Skip to main content
15,921,467 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Possible to use a cash drawer without a receipt printer?
I have a new client, interested in setting up a Point of Sale. Very basic bar.

He has no need for a receipt printer but wants a cash drawer to open whenever a sale is processed.

Is there a way to accomplish this through the POS?

What I have tried:

I want to add reference Windows.Devices.PointOfService.dll but cannot add this dll in the project...
Posted
Updated 10-Jun-19 22:46pm
v2
Comments
F-ES Sitecore 11-Jun-19 3:54am    
Not from asp.net as the server has no access to client hardware.

1 solution

If you use a network printer, it could be done like this:
File.WriteAllBytes(fileName, new byte[]{ 27, 112, 0, 25, 250 });
File.Copy(fileName, networkPrinterPath);
Note that the byte codes are only an example, you have to use specific codes for your cash drawer.
If you can't use a printer I suggest writing a SignalR client desktop application that will receive a SignalR message from the server and then use the client's hardware directy.
 
Share this answer
 
v2
Comments
Member 13063945 11-Jun-19 4:55am    
No network printer I want to connect through the USB port and want to open using the button in my pos system...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900