This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
I have to print some PDF files located in the Server from the client PC to a predefined printer which is configured in another machine say \\myserver. Now I need to get the printer name on that machine and print PDF files on that printer.
posted 11 years ago
Getting the Printer name has innumberable options here a few: - Write to a file, map there and read it (-) - Write a small SOAP server and read via Webservice (SOAP Request) (+) - Install Tomcat and write a small servlet (HTTP Request) (++) - Write to a database and connect there (++)
That was the easy part.
Printing PDF requires a PDF Rendering engine like Acrobat You can launch Acrobat for automatic printing in Windows via Shell extensions but i don't know if you can accomplish this without a JNI Interface into your OS.