Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Open a cash drawer

Posted on 2006-10-28
3
Medium Priority
?
1,347 Views
Last Modified: 2009-04-18
Hi, i have a Point of sale program that use a epson tmu200 printer. also it usea a cash drawer. the cash drawer is connected to the printer epson by a rj11 cable, the pirnter epson send a pulse and open the cash drawer. the printer epson is a paraler port

i use this code

Open "LPT1:" & strcommNumber For Output As #1
Print #1, Chr(27) + Chr(112) + Chr(0)
Close #1

if i use a serial , or a usb port printer, it don,t  open the cash drawer, the code is just for pararel port printers.

The question is some body know the code to open tha cash drawer with a usb port printer ?
0
Comment
Question by:cano63
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Accepted Solution

by:
ogog earned 750 total points
ID: 17830019
i used to do this by using the "virtual" com ports. Scince the USB is always associated with a com: port.

try replacing LPT1: by COM1:, COM2... etc. try them all. In my PC i've got a total of 9 COM: ports!

here is what i used, it's working fine:

        Open "COM1:" For Output As #1
            Print #1, Chr$(27); Chr$(112); Chr$(0)
        Close #1

it's just like yours but i'm using the coms. try all numbers untill you get it right. (see in the harware panel how many you've got)

tell me how it goes.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question