Add new comment
How to do it with USB POS printer.
What do I have to do to this code to open a cash drawer if the POS printer is connected trough a USB port?
'Use this code if you are using COM Port
FileOpen(1, AppDomain.CurrentDomain.BaseDirectory & "open.txt", OpenMode.Output)
PrintLine(1, Chr(27) & Chr(112) & Chr(0) & Chr(25) & Chr(250))
FileClose(1)
Shell("print /d:com1 open.txt", AppWinStyle.Hide)
Anonymous (not verified)
Sat, 08/06/2011 - 04:14
Permalink