Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cash Drawer
Message
De
22/03/2005 02:03:03
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Divers
Thread ID:
00997825
Message ID:
00998009
Vues:
20
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform