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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

Accessing a Local Printer

Steve Dyke
Ranch Hand

Joined: Nov 16, 2004
Posts: 1394
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: 8843

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: 1394
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: 60810

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
how to send raw data to printer
Print directly to dot matrix printer
Want to print a file using java program
Declaring a PrintWriter object
exclusive file access