File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Accessing a Local Printer Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes 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: 1254
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: 8263

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: 1254
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: 56192
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Accessing a Local Printer
 
Similar Threads
Declaring a PrintWriter object
Want to print a file using java program
Print directly to dot matrix printer
how to send raw data to printer
exclusive file access