Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Opening Cash Drawer
Message
De
01/08/2003 09:23:54
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Opening Cash Drawer
Divers
Thread ID:
00815833
Message ID:
00815833
Vues:
102
I have a receipt printer with a cash drawer hooked up to it. By sending a Ctrl-G to the printer, a signal is sent to the cash drawer and the drawer opens.

In VFP8, how do I send a Ctrl-G to the printer. I tried ??? CHR(7) and I can see my printer icon light up in the windows tray, but the cash drawer doesn't open...I tried following up the CHR(7) with CHR(10) but nothing....after trying several CHR(10), CHR(13) and EJECT commands (changing the _PADVANCE variable to both "FORMFEED" AND "LINEFEEDS") the drawer finally opens. But, I haven't been able to nail down the exact sequence - in fact, it seems pretty random.

There's got to be a better way. Can I embed a Ctrl-G in a report somehow? Any help would be appreciated.

Thanks,
Alan
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform