Information générale
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Network:
Windows 2000 Server
I did that but it seems that VFP preproccess the characters. They print in the ticket as weird characters. I'd have to print the report using ?/?? commands.
Thanks anyway
>>Hello all:
>>
>>I'm printing tickets in a EPSON TM U210, using Benatech drivers (better than Epson ones). My tickets are grouped and at the end of each group the report cuts the page (That's OK, I instructed the group to begin in a new page).
>>
>>The problem is that the first group isn't cut. The secont and all the other are cut.
>>
>>The command to send a manual cut is CHR(27)+CHR(109). How can I sent those direct codes to the printer on each group repetition?
>
>Create a field at the end of the group, and put CHR(27)+CHR(109) as the expression to print. Then be very careful with the Print When expression to make sure the field prints only when it should - maybe manipulate a report variable. One way would be to have a variable a copy of the group expression, and print these two characters only when it's still different from the group expression - because you'll set it equal in a call to _vfp.docmd("yourvar=groupexpr") from the group's footer.
>
>Now if I have misnamed any of the features here, I hope somebody else will jump in. I don't do this too often - last VFP report was years ago - so I know this stuff on principle and memories, but can't remember the names of things you use.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement