On Debug, when the POS has the default windows shell (explorer.exe) it prints sucessfully, but if we replace the default windows shell with our program or any other program (for example cmd.exe) and we print with the same functions, it sleeps on the EndDocPrinter call about 3 secs.
Is unnaceptable to print 3 tickets in 12 secs, and i have no idea what to test now.
An a workarround will be to start the standard shell without taskbar (blue bottom bar), but apparently it is not posible to make it hidden from start to end of the windows session.
It is not a problem of the driver, cause we test it with our printer driver and some standard printer drivers as generic text only, hplaserjet4, etc.
Developing a POS with Windows XP Embedded, Windows Embedded 2009, Windows XP Proferssional.
Printing a Documents with the OpenPrinter, StartDocPrinter, StartPagePrinter, WritePrinter, EndPagePrinter and EndDocPrinter Functions