Sending CHR(7) to cash drawer to Open

  • Thread starter Thread starter Hector M Banda
  • Start date Start date
H

Hector M Banda

Hi all,
How can I send chr(7) thru VB2005 using the parallel port?


BTW This is for a POS system.
Thanks,

-hb
 
Sounds like you want to send raw data to the parallel port; maybe treat it
like a printer? Here's a couple of links that might be helpful:
http://support.microsoft.com/kb/138594/
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=325408&SiteId=1
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=320932&SiteId=1

There's also a section or sending raw data to a printer with VB2005 in this
book: http://www.oreilly.com/catalog/vb2005ckbk/toc.html, although I
haven't read it myself. Might be worth browsing through at the local
bookstore if you have time.
 
Hi,

You can download IONet.dll from my homepage. This would allow you to bypass
Windows and send the data directly. However, there are other ways:

http://support.microsoft.com/kb/154078

for example.

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Just found that the following worked under VB6 - try it in .net (and let
us know if it still works)

Dim fn As Integer
fn = FreeFile()

Open "LPT1:" For Output As #fn
Print #fn, "your data here"
Close #fn
 
Back
Top