PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → iEscape(ESC+"i"), cut command after iPrint
iEscape(ESC+"i"), cut command after iPrint
Débuté par SabriB, 25 oct. 2014 13:40 - 1 réponse
Posté le 25 octobre 2014 - 13:40
Hi,

I have the following code:

iPrint(iFont(1)+iXPos(0)+Str1)
iprint(ifont(1)+" ") // print an empty line

iEscape(ESC+"i")

iPrint(iFont(1)+iXPos(0)+Str1)
iprint(ifont(1)+" ") // print an empty line

iEscape(ESC+"i")
iEndPrinting()

When I run this code the printer first applies the iEscape commands (in my example it gives 2 x a cut operation and starts printing) first then the iPrint command.

This is not what i want. What can I do to change the sequence?

Thanks for your feedback, Sabri.
Posté le 26 octobre 2014 - 09:02
Hallo Sabri,

I have the following code for open a cash drawer without printing. I dont know, what you want to do exactly - only a tip.

iWindowCancel(False)
iDestination(iPrinter,"Open drawer")
iEscape(Charact(27) + Charact(112) + Charact(48) + Charact(50) + Charact(250))
iEndPrinting()

Other idea - the settings of the printer have an automatic cut.

Christoph