Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Absolute path of the file being printed
Name: Aleesa Date: July 27, 2002 at 15:04:02 Pacific
Comment:
Hi All, I am looking at the entire print flow architecture and I seem to be missing one thing. How does the print spooler know the directory structure of the data file? that is, when the application selects "print" from the menu, where does the entire path of the file being printed get stored? or does it get stored at all? there should be some place which contains not only the filename, but also the directory where th file resides. else, how will the print spooler know where to get the data from? I need this information for a printer accounting software that i am developing. thanks in advance for all the help.
Name: DTec Date: July 27, 2002 at 20:28:22 Pacific
Reply:
I would assume that it generates a spooler file under the WINNT directory. C:\WINNT\System32\Spool
0
Response Number 2
Name: NoName Date: July 28, 2002 at 02:06:59 Pacific
Reply:
Looking at the Platform SDK-Print Spooler-Printing a document:
>>// Zero and then initialize the members of a DOCINFO structure. >> >> memset( &di, 0, sizeof(DOCINFO) ); >> di.cbSize = sizeof(DOCINFO); >> di.lpszDocName = "Bitmap Printing Test"; >> di.lpszOutput = (LPTSTR) NULL; >> di.lpszDataType = (LPTSTR) NULL; >> di.fwType = 0; >> >> // Begin a print job by calling the StartDoc function.
>> nError = StartDoc(pd.hDC, &di);
After that only data gets pushed to the spooler so my best guess is that the spooler only knows of anapplication-defined 'DocName'
Luck, Brt
0
Response Number 3
Name: Aleesa Date: July 28, 2002 at 05:52:36 Pacific
Reply:
So Does that mean that the application (say MS Word) directly sends the data to the spooler and hence no file path name is ever stored? I have been trying in vain to figure this out because I need to develop a print tracking program that also tracks the actual path of the file being printed. Thanks a ton!!
Summary: Man, I got a wierd one...... I tried fiddling with it, my partner fiddled with it, the tech guys at the helpdesk are helpless and the other techies are stumped so far... Here is the scenario.... I ha...
Summary: At the DOS prompt enter this: xcopy /? and you should see a better presentation of the strings below. XCOPY source [destination] [/A | /M] [/D[:date]] [/P] [/S [/E]] [/V] [/W] ...
Summary: We're planning on switching from Windows 98 to Windows 2000, but we've run into a problem when printing postscript files from Acrobat 4 and Publisher 2000. Under Win 98, when printing to the Acrobat ...