[WinPrnDev] Re: Creating a Printer Driver

  • From: Tamas Demjen <tdemjen@xxxxxxxxx>
  • To: winprndev@xxxxxxxxxxxxx
  • Date: Tue, 23 Mar 2010 10:25:41 -0700 (PDT)


From: Sam Elamin <hussam_88@xxxxxxxxxxx>
>
>
> >
>I am trying to develop a printer driver which will be installed on a client 
>side, what i need this driver to do is just save the path of documents sent to 
>it to a string and forward that string to an ASP.NET application which will 
>upload the document to a print server.
>
There is no known solution to get the path of the document from the 
printer driver.

All the printer driver knows is the document name, which normally tends to 
contain the filename without the path, but it cannot be guaranteed. The 
document name completely depends on the application that prints, not on you. In 
a server environment your best bet is to name every document uniquely (hint: 
GUID as filename), and hope the document name contains the unique filename, so 
you can identify them.

Tom

Other related posts: