Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Printer Name

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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


Regds
Rajesh
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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

Frank
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic