I want to batch print from the webclient while running the application from the windows service. In order to do this I save my .pdf BLOB to a tempFile on the server and then I print it silently to Acrobat using:
application.executeProgramInBackground('\"'+acrobat_location+'\"', '/p', '/h', '/t', '\"'+tempFile+'\"', thePrinter);
The code executes fine when the application server is run by opening the .bat file in the application_server directory. However, when I run the application server from the service all else runs well but this particular line of code does not result in the tempFile being sent to thePrinter.
It does not throw an error message or write anything to the servoy log or the windows event log. The client does not crash or even stall. If I run the service under a local administrator account it does not solve the problem. If I run the service under the system account and check off the box to allow the service to interact with the desktop it throws an error from Acrobat saying that I need to install a printer. thePrinter is installed and it all works fine if I start the application server with the .bat file instead of starting if from the service.
My question is what can I do to make this work while running the application_server from the service?
Thanks for your help
John McCann
Windows 2008 Server
MS SQL
Java 1.7 (64 bit)
Servoy 6.1