how to get the file's full path from printer queue?
-
I use the EnumJob to get the job from printer my local or network printer. every job include pszdocument,page,bytes,user so on . if I use microsoft word to print,the pszdocument is only the file name,just "microsoft word 11.doc". but if Use UltraEdit to print,the pszdocument is the file's full path,just "c:\\tmp\1.txt". why? I want to know the file's full path by using word to print, how to do that? -- modified at 21:19 Sunday 30th October, 2005
-
I use the EnumJob to get the job from printer my local or network printer. every job include pszdocument,page,bytes,user so on . if I use microsoft word to print,the pszdocument is only the file name,just "microsoft word 11.doc". but if Use UltraEdit to print,the pszdocument is the file's full path,just "c:\\tmp\1.txt". why? I want to know the file's full path by using word to print, how to do that? -- modified at 21:19 Sunday 30th October, 2005
The
pDocumen
member of theJOB_INFO_2
structure points to a null-terminated string that specifies the name of the print job, as it was communicated by the thread/app which ordered the printing. MS Word communicates something like this: MS-WORD: YourDocument.doc, while UltraEdit seems to communicate more. You / we must think of another way of getting that information (if possible) SkyWalker