Open A Cash Drawer With VB.NET
Category:
C#, VB.NET, ASP.NETType:
SnippetsDifficulty:
IntermediateAuthor:
AnonymousVersion Compatibility: Visual Basic.NET
More information:
The following routine opens a cash drawer using VB.Net. Most cash drawers are attached to a recipt printer through what looks to be a phone jack. To open the cash drawer the POS software must send "control codes" to your printer which will then send an impulse to the cash drawer to pop it open. The problem is that the POS software has to know the proper control code to send to the receipt printer that you are using. It seems like every receipt printer uses a different code. You can find the "open cash drawer" code by looking in the printer's manual, calling the printer's manufacturer, or it may be listed at the bottom of this page. http://pages.prodigy.net/daleharris/popopen.htm
Instructions: Copy the declarations and code below and paste directly into your VB project.
Declarations: