Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set printer row() and col() to zero
Message
De
09/11/2004 04:15:48
 
 
À
09/11/2004 01:40:08
Hee Lim Wang
Fantasy Software Enterprise
Malaisie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00958751
Message ID:
00959437
Vues:
18
Create a file with the characters to eject the cash drawer
STRTOFILE(CHR(27)+'p101','eject.txt')
To eject:
COPY FILE eject.txt TO LPT1:
Be sure to replace LPT1: with the corresponding printer port or UNC, for instance \\myserver\printer1


>If I want to kick out cash drawer before printing receipt with report form
>what should I write ? cash drawer command is chr(27)+'p101'
>How to mix these two things together ?
>currently I run external dos program to kick out first, but it doesn't look nice......
>
>Have you tried my solution? The thing is that in order to reset PROW and PCOL, you must EJECT. So what I do is send the eject to a file, and then delete the file. I have done this for 10-15 years without any problem so far.
>
>>Eject will eject whole page of paper size, that is not what I want....
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform