printing using webservice and specific account

guydeschepper@hotmail.comguydeschepper@hotmail.com Member Posts: 16
edited 2015-07-22 in NAV Three Tier
All,

Below the description of the question I have.

In a custom interface, data is gathered and invoiced, and the invoce is written as a pdf file. The latter is done using a webservice and SaveAsPDF. The code is initiated in 2009SP1 classic client.
So far so good : this part is working without any problems.

An extra request was added to the costomization : besides creating the pdf file, it should also be send to the printer. Still no rocketscience to be implemented. But where I get stuck is the fact that it should be sent to the printer, by using the users credentials. This is necessary because the user who prints the documents can only retrieve the documents created with his personal badge: in order to print the document, the user goes to the printer, scans its badje, selects the document(s) to print and then collect its paper documents.

So if [user A] sends the print command (print to PDF + send regularly to printer), all code is executed within the webservice, so with the accounts under which the webservice runs, which differs from the user initiating the task. Thus the user will not find it's printed documents on the server.

Is there a way to execute this job under a specific user (namely the user initiating the print request) ?


Thanks upfront for your time
Sign In or Register to comment.