This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

Accessing a Local Printer

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
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
Bartender

Joined: Oct 29, 2001
Posts: 8836
    
    7

Have a look at this discussion.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1393
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
Marshal

Joined: Jan 10, 2002
Posts: 60765
    
  65

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Accessing a Local Printer
 
Similar Threads
Print directly to dot matrix printer
Want to print a file using java program
how to send raw data to printer
exclusive file access
Declaring a PrintWriter object