Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cash Drawer
Message
From
22/03/2005 02:03:03
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Miscellaneous
Thread ID:
00997825
Message ID:
00998009
Views:
19
>This was easy in DOS. In Windows one cannot send anything directly to the ports. Hence my dilemma.

You can create fake printer using 'Generic/Text only' driver
having it set on port with cash drower

Here is the code I used to open it.
It was long time ago with IBM PC POS running on W95/W98 at the time, so it might fail on W2000/XP.

All lines might not be needed but since it was working like this nobody wanted to mess wit it anymore :)
cCashDrw='YourFakePrinterOnCashDrower'
SET CONSOLE OFF
set printer to
SET PRINTER TO NAME (cCashDrw)
SET DEVICE TO PRINTER
??? chr(7)     
SET PRINTER OFF
SET PRINTER TO
SET DEVICE TO SCREEN
SET PRINTER OFF
SET CONSOLE ON
set printer to default
You can give it a try.

Rgds++
Sergio
*****************
Srdjan Djordjevic
Limassol, Cyprus

Free Reporting Framework for VFP9 ;
www.Report-Sculptor.Com
Previous
Reply
Map
View

Click here to load this message in the networking platform