users
[Top] [All Lists]

Re: [cinjug-users] printing in Java

To: users@xxxxxxxxxx
Subject: Re: [cinjug-users] printing in Java
From: Matt Avery <mavery@xxxxxxxxxxxxxxx>
Date: Fri, 12 Nov 2004 11:12:03 -0500
Delivered-to: mailing list users@cinjug.org
In-reply-to: <000401c4c8cf$b43a4680$9f42058f@carmani600m>
Mailing-list: contact users-help@cinjug.org; run by ezmlm
References: <000401c4c8cf$b43a4680$9f42058f@carmani600m>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
I have used the API in the javax.print package and I was very impressed. You can get all kinds of info about networked printers and control the printing any way you want.

James Carman wrote:
There is an AIP in the AWT that allows for starting "print jobs."  Try
looking into Toolkit.getPrintJob().  That will use your local native O/S's
print job initiation dialog, which will allow you to choose whatever printer
you want.

-----Original Message-----
From: Jason Kretzer [mailto:jrkretzer@xxxxxxxxx] Sent: Friday, November 12, 2004 10:23 AM
To: users@xxxxxxxxxx
Subject: [cinjug-users] printing in Java


I saw this thread on another JUG and decided to post
it here as the other JUG is still debating it.

Lets say you have a very simple Notepad style editor
written in Java, like the Notepad that comes with SDK.
 How would one add functionality to allow the app to
print?  For both a networked and connected printer?

It has been suggested that you use a FileOutputStream
and just point it at the (lets say for Windows) COM1
port.

Are there better ways than this?

-Jason

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com


---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx



---------
You may unsubscribe from this mailing list
by sending a blank email addressed to:
users-unsubscribe@xxxxxxxxxx

--
Find additional help by sending a blank email
addressed to:
users-help@xxxxxxxxxx




-- Matthew Avery Senior Developer (513) 470-5316 http://www.einnovation.com/

<Prev in Thread] Current Thread [Next in Thread>