Controlling a cash drawer

Knowledge exchange related to the VPE Report Engine and PDF Library

Moderator: IDEAL Software Support

Controlling a cash drawer

Postby JudgeTerry » Tue Jul 06, 2010 3:57 pm

Is there a way to control a cash draw attached to a printer? The Printer docs say that a control-G (bell) should open the door. Any ideas would be welcome.

Terry
JudgeTerry
 
Posts: 30
Joined: Thu Jan 22, 2009 10:56 pm

Postby JudgeTerry » Wed Jul 07, 2010 4:23 pm

I was using the wrong code for the Epson printer:

while processing the event VPE_PRINT_DEVDATA, send:
VpeDevSendData(hDoc,chr(27)+chr(112)+chr(0)+chr(25)+chr(250),5)

This opens the cash drawer!

Terry
JudgeTerry
 
Posts: 30
Joined: Thu Jan 22, 2009 10:56 pm

Re: Controlling a cash drawer

Postby cdid2 » Mon Nov 29, 2010 3:48 pm

is work with active x control? I try VpeCtrl.DevSendData(chr(27)+chr(112)+chr(0)+chr(25)+chr(250),5) with no success

thanks
cdid2
 
Posts: 1
Joined: Mon Nov 29, 2010 3:46 pm

Re: Controlling a cash drawer

Postby IDEAL Software Support » Tue Nov 30, 2010 10:02 am

After reading your message, we analyzed the code of the ActiveX, and we believe it did have a bug. If you are using VPE v6.0, we can provide you the bugfix. Please contact our support by e-mail.
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Controlling a cash drawer

Postby dive26 » Fri Mar 21, 2014 3:29 pm

I have the 6.10 enhanced.
Do oyu have fixed this bug?

I try Report.DevSendData(Chr(27) + Chr(112) + Chr(0) + Chr(25) + Chr(250)), but nothing.
dive26
 
Posts: 13
Joined: Mon Sep 30, 2013 3:59 pm

Re: Controlling a cash drawer

Postby IDEAL Software Support » Fri Mar 21, 2014 4:05 pm

The bug in the ActiveX had been fixed in v6.10.

If it does not work for you, this might have many different reasons:
The printer driver might not support it, the driver might have a bug, or it does only work if the printer driver is accessed in a specific text mode, which is not supported when printing via GDI in graphics mode (as VPE does).

Another option is that you are calling DevSendData() at the wrong place in your code.
You may only call this function while processing the event DoPrintDevData().
IDEAL Software Support
 
Posts: 1621
Joined: Thu Nov 18, 2004 4:03 pm

Re: Controlling a cash drawer

Postby dive26 » Fri Mar 21, 2014 4:37 pm

Thank you.

I have found an other way to open the cash drawer (with "winspool.drv").
I wrote my own Function OpenCashDrawer("EPSON TM-T88V")
dive26
 
Posts: 13
Joined: Mon Sep 30, 2013 3:59 pm


Return to VPE Open Forum

Who is online

Users browsing this forum: Google [Bot] and 8 guests

cron