Hi
I'm working on a printer driver. ours is Unidriver-based driver.
I'm programming with the sample sources of a print processor that are in the
Windows DDK.
(\WINDDK\3790\src\print\genprint)
The sample sources already implemented a few printing features such as n-up,
reverse printing, etc...
i want to make a feature of manual duplex with the sample sources,
but i got a problem.
As you know, the manual duplex feature is that the front data of pages for
duplex is printed at first, and then the driver show a message box that
inform of the user to put the printed matters on the multi-purpose tray.
Finally, the back data of pages for duplex is printed.
So, i refered to the sample code amd made a linked list that store a page
information.
i used Gdi functions for a print processor such as GdiStartDocEMF() and
GdiEndDocEMF()....
but.. I got a problem..
the problme is that after the front data of pages for duplex is sent to
spooler,
i called GdiEndDocEMF() function to eject all the front data of page from
printer.
At that time, unforunately.. the emf data is deleted from spooler. T_T
although i called GdiStartDocEMF() to tranlate the back data of pages, the
return of the function is failed,(the GetLastErr() is 62)..
what function do the GdiEndDocEMF() replace to eject all data from printer?
how can i implement the maunal duplex feature in a print processor??
if you know, plz... let me know how to do or what to do....
thanks.
wany.