File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Accessing a Local Printer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Accessing a Local Printer

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1563
I am trying to send text to a local printer do not successful yet. Printer is on port LPT1 along with two other drivers. Please help.

Joe Ess

Joined: Oct 29, 2001
Posts: 9190

Have a look at this discussion.

[How To Ask Questions On JavaRanch]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1563
I have got what I need to work using PrintServices class. However, it only works when ran on local web app host. Fails when I deploy it on the production web app server. I need somehow to run the java class from the current session client side so a local printer can be accessed.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63870

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place. Please read this for more information.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Accessing a Local Printer
It's not a secret anymore!