Computing.Net > Forums > Windows 2000 > Absolute path of the file being printed

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

Reply to Message Icon

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.




Sponsored Link
Ads by Google

Response Number 1
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!!


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Absolute path of the file being printed

Reached the end of the file. www.computing.net/answers/windows-2000/reached-the-end-of-the-file/61929.html

using xcopy with dos startup disk? www.computing.net/answers/windows-2000/using-xcopy-with-dos-startup-disk/55864.html

print to file dialog box under wind www.computing.net/answers/windows-2000/print-to-file-dialog-box-under-wind/45049.html