windows - EndDocPrinter Sleeps 3 secs without Shell (explorer.exe) -


On debug, when POS has the default window shell (Explorer.axa), it prints successfully, but if we Open the window with our program or any other program (for example, cmd.exe) and we print with the same function, this sleeps about 3 seconds on the endok printers call.

In 12 seconds, 3 tickets are not printable, and now I do not know what to test now.

Without a workspace taskbar, a standard shell must start (blue bottom bar), but apparently it is not hidden from the start of the windows session.

This is not a driver problem, because we test it with our printer drivers and some standard printer drivers, a Embedded POS with Windows Embedded, Windows Embedded 200 9, Windows XP Professor.

Print a document with OpenPictor, StartDekPrinter, StartPagePrinter, WritePrinter, EndPagePrinter and EndDocPrinter Functions

I have separated the endocrine printer, and it seems that try to find a window with a classname PrintTray_Notify_WndClass. Get rid of the delay by registering a new class with that name and creating a hidden window. This is an ugly solution that can break at any time. Only tested in XP SP3.

Of course, the work I did was to go to printtrack_notif_windcloud and found it:


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -