473,396 Members | 2,013 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,396 software developers and data experts.

Opening of a Cash Drawer

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 + #250). I would appreciate
any assistance on the code here for.

Apr 18 '07 #1
13 8074
On Apr 18, 10:28 am, Connull <Conn...@discussions.microsoft.com>
wrote:
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 + #250). I would appreciate
any assistance on the code here for.
Are those decimal or hex? Why can't you use the Chr function to
convert them into the character representation and send them to the
printer?

Apr 18 '07 #2
=?Utf-8?B?Q29ubnVsbA==?= <Co*****@discussions.microsoft.comwrote in
news:12**********************************@microsof t.com:
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 + #250). I
would appreciate any assistance on the code here for.
How are you connected to the cash drawer?

Serial? Keyboard?

Keyboard, you can use send keys. Serial you can use the System.IO.Ports
namespace.

Apr 18 '07 #3


"za***@construction-imaging.com" wrote:
On Apr 18, 10:28 am, Connull <Conn...@discussions.microsoft.com>
wrote:
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 + #250). I would appreciate
any assistance on the code here for.

Are those decimal or hex? Why can't you use the Chr function to
convert them into the character representation and send them to the
printer?

How would I send this to the printer? I beleive this is a "string" that I need to send"
Apr 18 '07 #4


"Spam Catcher" wrote:
=?Utf-8?B?Q29ubnVsbA==?= <Co*****@discussions.microsoft.comwrote in
news:12**********************************@microsof t.com:
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 + #250). I
would appreciate any assistance on the code here for.

How are you connected to the cash drawer?

Serial? Keyboard?

Keyboard, you can use send keys. Serial you can use the System.IO.Ports
namespace.

The cash drawer is connected to a port on the pc and then a telephone cable connection to the printer
Apr 18 '07 #5


"Spam Catcher" wrote:
=?Utf-8?B?Q29ubnVsbA==?= <Co*****@discussions.microsoft.comwrote in
news:12**********************************@microsof t.com:
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 + #250). I
would appreciate any assistance on the code here for.

How are you connected to the cash drawer?

Serial? Keyboard?

Keyboard, you can use send keys. Serial you can use the System.IO.Ports
namespace.

Is this available in 2003 as I don't seem to have the System.IO.Ports namespace?
Apr 18 '07 #6
=?Utf-8?B?Q29ubnVsbA==?= <Co*****@discussions.microsoft.comwrote in
news:F7**********************************@microsof t.com:

>Is this available in 2003 as I don't seem to have the System.IO.Ports
namespace?

..net 2.0 (vs.net 2005)

Apr 18 '07 #7
Hi,

Look at: http://support.microsoft.com/kb/322090

Dick

--
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.
Apr 18 '07 #8
If serial, and you are using VS2003, then download DesktopSerialIO.dll
(free) from my homepage. You code:

Dim Buffer (4) As Byte
Buffer(0) = 27
Buffer(1) = 112
Buffer(2) = 0
Buffer(3) = 25
Buffer(4) = 250

With SerialPort
If .PortOpen = False Then .PortOpen = True
.BitRate = 9600 'for example
.Output(Buffer)
End With

--
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.
Apr 18 '07 #9
On Apr 18, 12:08 pm, "Dick Grier" <dick_grierNOSPAM@.msn.comwrote:
If serial, and you are using VS2003, then download DesktopSerialIO.dll
(free) from my homepage. You code:

Dim Buffer (4) As Byte
Buffer(0) = 27
Buffer(1) = 112
Buffer(2) = 0
Buffer(3) = 25
Buffer(4) = 250

With SerialPort
If .PortOpen = False Then .PortOpen = True
.BitRate = 9600 'for example
.Output(Buffer)
End With

--
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.
Seewww.hardandsoftware.netfor details and contact information.
If it's like the Star Micronics receipt printer we just used for our
POS app, the cash drawer is connected directly to the printer and not
to a serial port. The printer itself may be connected to a parallel
port. Our printer had a .Net library and one of the commands was to
pop the drawer. Have you check with Epson to see if they have such a
library?

Chris

Apr 18 '07 #10
Please provide me with your homepage details as what you have indicated here
sounds perfect.

"Dick Grier" wrote:
If serial, and you are using VS2003, then download DesktopSerialIO.dll
(free) from my homepage. You code:

Dim Buffer (4) As Byte
Buffer(0) = 27
Buffer(1) = 112
Buffer(2) = 0
Buffer(3) = 25
Buffer(4) = 250

With SerialPort
If .PortOpen = False Then .PortOpen = True
.BitRate = 9600 'for example
.Output(Buffer)
End With

--
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.
Apr 18 '07 #11
I have downloaded the dll but am unable to reference it. I get the error:
"this is not a valid assembly or COM component. Only assemblies with the
extension of 'dll' and COM components can be referenced". Please assist.

"Dick Grier" wrote:
If serial, and you are using VS2003, then download DesktopSerialIO.dll
(free) from my homepage. You code:

Dim Buffer (4) As Byte
Buffer(0) = 27
Buffer(1) = 112
Buffer(2) = 0
Buffer(3) = 25
Buffer(4) = 250

With SerialPort
If .PortOpen = False Then .PortOpen = True
.BitRate = 9600 'for example
.Output(Buffer)
End With

--
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.
Apr 18 '07 #12
Hi,

It isn't a COM dll. It is a native .NET dll. Use the Project/Add Reference
menu. Keep the tab on .NET. Browse to the location where you placed the
dll. Select it. Click OK. That's it.

There is an example terminal application in the download. Perhaps looking
at it will help?

Dick

--
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.
Apr 19 '07 #13
Hi,

My other reply showed how to send RAW data to a parallel printer. You don't
really need a .NET library (though, if the vendor offers one, then it
certainly makes sense to use it).

Dick

--
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.
Apr 19 '07 #14

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...
0
by: Shakil Shamji | last post by:
I have a VB.Net application which is deployed on Citrix. It uses Crystal Report 8.5 for printing reports. One of my remote users has an Indiana Cash Drawer connected to the printer port. When the...
2
by: carl | last post by:
need to send a command from a POS Application in Microsoft Access 2000 to open a cash drawer. If anyone can help, please contact me. I will pay $$ for very specific directions if I have to. ...
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...
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...
3
by: gggram2000 | last post by:
Hi, I need some assistance. I'ved been searching the web for days now and can't find an example that really helps me. I have an EPSON TM-T88IV printer through which I want to open a cash drawer. I...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.