Two Laptop Bag*
The moose likes Java in General and the fly likes Printer Name Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Printer Name" Watch "Printer Name" New topic

Printer Name

Rajesh Navduri
Ranch Hand

Joined: Jun 28, 2001
Posts: 31

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.

Pl suggest

Frank Jorga

Joined: Dec 17, 2004
Posts: 3
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.

Sorry, but i don't know something better

Consider Paul's rocket mass heater.
subject: Printer Name
Similar Threads
Printing to a Network Printer
How can I print my pdf file to printer using swt and save the pdf file
PDF report problem when i try to print
Problems in printing a PDF file in java
java.lang.OutOfMemoryError: Java heap space