All of these requirements are addressed in the "merlin" upgrade
release of JDK (aka J2SE) which goes into public beta in the late Spring.

There's no way of doing it in current releases - sorry.

Look at the javax.print spec on the JCP website for more info on what's
coming up :

http://java.sun.com/aboutJava/communityprocess/review/jsr006/index.html

PrinterJob isn't actually covered in that spec but uses much of this API.
I hope to publish an update to the spec in a couple of weeks which will
include a developer's guide which explains how all this neatly
integrates with the PrinterJob class.

A complete implementation of all of this for PrinterJob will be in the
merlin beta I mentioned.

[[BTW orientation & paper size can already be specified via the PageFormat
object, but if you don't invoke theprint dialog then it is only for the
default printer, and the paper size has to be specified by its dimensions,
not by name]].

-Phil.

> X-Orig: <[EMAIL PROTECTED]>
> Date: Mon, 5 Feb 2001 13:03:03 -0500
> From: Joseph Vas <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Printing without invoking printDialog method of PrinterJob
class
> To: [EMAIL PROTECTED]
>
>
> Hi Guys:
>
> 1)How do you programatically list the names of all the available printers
> without invoking
> the printDialog method of the PrinterJob class. The goal here is to get the
> names of all the printers
> that are available without using printDialog.
>
> 2)How do you get the details of each printer programatically. Details such
> as paper size, orientation, simplex/duplex
> etc.
>
> 3) How do you specify printer details to the PrinterJob class without
> invoking the printDialog method.
> For example, how would you tell PrinterJob the following need to be used for
> the job:
> Printer: \\MyPrinter\HP LaserJet 5N
> Orientation: Landscape
> Paper Size: Letter
>
>         Thanks, -Joe
>
>
>
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to