Eject drawer on parallel POS printer, ejecting feeds paper

Posted on 2004-11-27
Last Modified: 2012-08-13

I have a drawer connected through a POS printer i have figured out that sending the command
 Chr(27) + Chr(112) + Chr(0) + Chr(25) + Chr(250)

will eject the drawer i have tried using
        Printer.FontName = "FontControl"
        Printer.Print "A";
however this will send an end, making the printer feed paper
as will
        OPEN "LPT1" for output as #1
        PRINT #1, Chr(27) + Chr(112) + Chr(0) + Chr(25) + Chr(250)
        CLOSE #1

what iam searching for is someway to eject this drawer without making the printer feed paper

Question by:mSchmidt
    LVL 19

    Expert Comment

    so you have it hooked up like this:

    PC -> PRINTER -> DRAWER, ON LPT1 (Parrell). Is this correct?


    Author Comment

    LVL 19

    Expert Comment

    Try doing it like this:


    what happens if you do that?

    Expert Comment


    I think I have a solution for you.
    In the configuration-screen of you printer, you are able to set commands that should be executedin the beginning and at the end of a print job (it is this way with most of the POS-printers, I use the samsung srp-350) There you can also choose to open the drawer at the beginnen and/or ending of a print job.
    If you want to be able to open the drawer on other times, you could use the code u have, with the font control. But then you will have to disable the feed. Check your configuration for the printer, and look for a tab called additional commands. there you should be able to check a box "without paper feeding" in the category end of doc. But then you will have to feed in you program. you can feed (and cut) with the control font also.

    Hope this helps
    LVL 16

    Accepted Solution

    Have you tried sending the raw data to the printer, as per ?

    Otherwise try

       Open "LPT1:" for Binary as #1
       Put #1, Chr(27) & Chr(112) & Chr(0) & Chr(25) & Chr(250)


       Open "LPT1:" for Output as #1
       Print #1, Chr(27) & Chr(112) & Chr(0) & Chr(25) & Chr(250)



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
    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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now