Can the path to a file be determined from a print job?
-
Hi all, i am working on an application that interacts with a print driver. However, when i use the Win32 API calls (EnumJobs, etc.) to determine what file was printed and where it was located, i can only get the file name (not the path). In some cases, i will need to do some examination of the contents of a file - so i need the path. Does anyone know how to obtain such a thing (i fear it doesn't exist)?
-
Hi all, i am working on an application that interacts with a print driver. However, when i use the Win32 API calls (EnumJobs, etc.) to determine what file was printed and where it was located, i can only get the file name (not the path). In some cases, i will need to do some examination of the contents of a file - so i need the path. Does anyone know how to obtain such a thing (i fear it doesn't exist)?
the_grip wrote: Can the path to a file be determined from a print job? I don't think so. When you print a file, you do so with some application that reads the file, make API calls to create a print document with some name, draw some content in it, and ends the operation. You then can see the print queue in the operating system, but the OS knows nothing about whether what it has to print was based on a file, its location, or its content. The print document may have the same name as some file, but for the OS it's just a name and nothing else. -- jlr http://jlamas.blogspot.com/[^]