printing using webservice and specific account
guydeschepper@hotmail.com
Member Posts: 17
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
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
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions