I have a printer processor to notify the application for end of print job. Then i can get SPL file for use.
And i also want to provide an interface for other application to print. like:
bool PrintDoc(const char *szfilefullpath, const char *outPDFfilepath);
In PrintDoc function, i will call word/powerpoint/excel's PrintOut interface.
I should wait for PrintDoc to be end, and then quit the call for PrintDoc.
The trouble is that i don't know how to associate the full path passed to PrintDoc(for instance:c:\test.doc) with the print document name in printer processor(here is some string like: Microsoft Word - test.doc), if there have many jobs, i don't know how to monitor them for end of print. please help.
|