hi All,
I have to retrieve the full path name of the document being printed.
I tried to use GetJob, which returns JOB_INFO_X structure but, that contains only document name, and not the path.
Even the DOC_INFO_1 structure contains only the document name, and not the path…
I need to find the full path for the document being printed…
Can you please throw some light on this issue…
Thanks a lot…
Pankaj
What makes Sachin India’s highest paid sports celebrity?, Share your knowledge on Yahoo! India Answers
Send instant messages to your online friends - NOW
Pankaj Adlakha wrote:
I have to retrieve the full path name of the document being printed.
I tried to use GetJob, which returns JOB_INFO_X structure but, that
contains only document name, and not the path.
Even the DOC_INFO_1 structure contains only the document name, and not
the path…
I need to find the full path for the document being printed…
This is impossible in the general case. Indeed, there is no requirement
that a print job originate from a document at all. It’s just Microsoft
Word drawing into a DC that happens to be a printer DC instead of a
screen DC.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
The document name is ANY string - the human-readable description - chosen
by the printing app. Like - “Microsoft Word - MyDocument.doc” or such.
Parsing it is impossible.
Associating the print job with the document filename is also impossible.
This information is only kept inside the printing app, which can be absolutely
any.
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
xxxxx@storagecraft.com
http://www.storagecraft.com
----- Original Message -----
From: “Pankaj Adlakha”
To: “Windows System Software Devs Interest List”
Sent: Friday, May 12, 2006 8:06 PM
Subject: [ntdev] Retrieving the full path for the printed document.
> hi All,
> I have to retrieve the full path name of the document being printed.
> I tried to use GetJob, which returns JOB_INFO_X structure but, that contains
only document name, and not the path.
> Even the DOC_INFO_1 structure contains only the document name, and not the
path…
> I need to find the full path for the document being printed…
> Can you please throw some light on this issue…
> Thanks a lot…
> Pankaj
>
>
>
> ---------------------------------
> What makes Sachin India’s highest paid sports celebrity?, Share your
knowledge on Yahoo! India Answers
> Send instant messages to your online friends - NOW
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer