Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP & Receipt Printers
Message
De
19/08/1998 10:00:06
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00127585
Message ID:
00128105
Vues:
38
>Now I think I am going to have to have some trust in my users to have the right printer selected when they need a receipt or a regular size report. Yeah, right! I can just hear the phone ringing when they select the Receipt printer when they are printing a sales report designed for letter size paper.

You can hook the receipt printer directly to LPT2 or LPT1, whatever, have it being used directly, and have your app print directly to it (i.e. no user choice - you decide upon instalation where the h. is the receipt printer, and never again). Then you could also make sure no other report is directed to it (unless it's the only printer).

I've had such a printer (Star, not Epson) and ended up coding it half-manually. We did use reports (FPD) to create the output, but before and after the report there was a long sausage of control codes - first one to download our diacritical characters (the poor thing never heard of code pages), and the other one to advance paper for six lines or so - no form feed in the end, and no way to tell it how long should a page be. We just had to print six extra empty lines so the paper tape (toilet paper size, yes) advanced up to the point where it could be cut. Luckily the thing didn't have a cutter, so one problem less.

BTW, it was installed in a bar, next to the espresso machine. You should have seen the PC after two years of intensive use there - we just couldn't clean it up. All the kitchen and coffee vapors have condensed on the inner side of the housing. Though, maintainance was fun - sitting on a bar stool and working :)

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform