Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cash drawer
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00378472
Message ID:
00378597
Views:
26
>Halo folk's
>I'm trying with no luck to resolfe this problem:
>Im using a Epson TM-88IIP printer conected to a cash drawer.
>Im sending the following comand:
>set device to print
>chr(27)+chr(112)+chr(0)+chr(25)+chr(250)
>and it opens the drawer but leafes a buffer in the print manager
>I'm removing this buffer with the "set print to" but as it resets the printer it moves 2 inches of paper witch is a wast each time I print a Invoice.
>Also I used the OPOS Driver from Epsons web site but I'm not able to interface to this ocx.
>Please help me with the buffer problem or the OPOS driver.
>Thank's
>
>P.s. working two months on this problem.

Have you looked at the sample code that came with the OPOS SDK? I use the same receipt printer with the cash drawer connected to the receipt printer. This has worked beautifully for me with my VFP apps. My sample code:
WITH This.oleDrawer
      lnRetval = .open(lcOposName)
      IF lnRetval=0
           lnRetval = .claim(1000)
      ENDIF
      IF lnRetval=0
           .DeviceEnabled = .T.
           llRetval = .DrawerOpened
           IF  .NOT. llRetval
                lnRetval = .OpenDrawer
           ENDIF
           .DeviceEnabled = .F.
      ENDIF
      .close(lcOposName)
ENDWITH
lcOposName is usually "Unit1". I have a registry class that retrieves this name from the windows registry.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform