>I didn't mean it to be either 1 or 2. It's pesudocode. If sending many at once you could check receiptnum%2 = 0.
That's not always going to work either. The users can print and eject one receipt and separate the counting from the position.
I know, I've got the same situation in code I'm maintaining. The solution for me was to keep a separate running total of lines printed and make sure that it stayed exactly on the half-page.
Another possibility that I didn't explore fully was to define the page length as a half-page so that an eject sets it to the top of the next receipt.
Chris.
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