473,387 Members | 1,585 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sending CHR(7) to cash drawer to Open

Hi all,
How can I send chr(7) thru VB2005 using the parallel port?
BTW This is for a POS system.
Thanks,

-hb
Oct 25 '06 #1
4 3260
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/Sho...25408&SiteId=1
http://forums.microsoft.com/MSDN/Sho...20932&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.

"Hector M Banda" <he****@mxlweb.comwrote in message
news:eu****************@TK2MSFTNGP03.phx.gbl...
Hi all,
How can I send chr(7) thru VB2005 using the parallel port?
BTW This is for a POS system.
Thanks,

-hb

Oct 25 '06 #2
Try:
Shell("cmd /c@echo " & chr(7) & " lpt1:"

Hector M Banda wrote:
Hi all,
How can I send chr(7) thru VB2005 using the parallel port?
BTW This is for a POS system.
Thanks,

-hb

Oct 25 '06 #3
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.
Oct 25 '06 #4
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

Theo Verweij wrote:
Try:
Shell("cmd /c@echo " & chr(7) & " lpt1:"

Hector M Banda wrote:
>Hi all,
How can I send chr(7) thru VB2005 using the parallel port?
BTW This is for a POS system.
Thanks,

-hb
Oct 27 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Scott A. Keen | last post by:
Hi, I'm getting tasked with writing an ASP application deployed throughout the company's intranet where all the workstations will be running Internet Explorer 6.0. It's a retail business, and...
6
by: PW | last post by:
I have an electronic cash drawer as part of a point-of-sale installation. You're supposed to be able to automatically open the cash drawer with some printer commands (drawer is connected to the...
4
by: Jeff Baynton | last post by:
Does anyone know how to get a cash drawer to open using VB? I'm doing a Point of Sale program and figured this was the easiest way to figure it out. If you know just email me. Thanks!
2
by: Tor Inge Schulstad | last post by:
Hi I'm developing a POS software using an Epson TM-T88iii printer with a cash drawer connected to the printer. The printer is connected via a usb interface to the pc. Can anyone tell me how I...
3
by: Stu Lock | last post by:
Hi, I am trying to write a script that sends a code to a COM port to open a till draw. The code at the bottom of the page (written in C) is what the suppliers sent as an example. I have used the...
13
by: =?Utf-8?B?Q29ubnVsbA==?= | last post by:
I need to open a Cash Drawer from my Windows App when the user issues and prints (Epson Receipt Printer) a Receipt. I beleive I need to pass the printer a string of (#027 + #112 + #000 + #025 +...
1
by: danishce | last post by:
Hi, I've been trying to configure the cash drawer connected directly to the CPU of the IBM Surepos PC. The cash drawer IBM P/N is 74F6178, IBM FRU P/N is 93F1901. The cash drawer port is connected to...
1
by: imlambo | last post by:
I am designing a point of sale and i am stuck on how to open a cash drawer. Since my system is going to be used by many clients i need help on a design which can open all cash drawers. Or just for...
4
by: piscut3 | last post by:
I'm developing a POS with cash drawer integration.But I can't open cash drawer. I have RS232 cable used to connect cash drawer to PC , dot matrix and cash drawer. This cash drawer has no DLL...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.