[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1049
  • Last Modified:

Eject drawer on parallel POS printer, ejecting feeds paper

Hi

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";
        Printer.EndDoc
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

0
mSchmidt
Asked:
mSchmidt
1 Solution
 
BrianGEFF719Commented:
so you have it hooked up like this:

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


-Brian
0
 
mSchmidtAuthor Commented:
yup
0
 
BrianGEFF719Commented:
Try doing it like this:

PC -> DRAWER -> PRINTER

what happens if you do that?
0
 
pietk0nijnCommented:
Hi,

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
0
 
jimbobmcgeeCommented:
Have you tried sending the raw data to the printer, as per http://support.microsoft.com/kb/q154078/ ?

Otherwise try

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

or

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

HTH

J.
0

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now