The Toolkit.getPrintJob() method provides a "properties" parameter, however
there is no documentation on what properties can be legally passed in this
parameter. Because of this, the parameter is unusable.
mei.chan@Corp 1997-03-28
A custonmer has called in and requested for the supported properties since
the documentation was found lacking on this.
I searched through the source code and found them, here they are:
Destination: (DEST_PROP)
"awt.print.destination" = "printer" | "file"
Printer Name: (PRINTER_PROP)
"awt.print.printer" = <name of printer you want to print to>
File Name: (FILENAME_PROP)
"awt.print.fileName" = <name of file you want to print to>
Number of copies to print: (NUMCOPIES_PROP)
"awt.print.numCopies" = <an integer, default is 1>
Any local site options: (OPTIONS_PROP)
"awt.print.options" = <whatever you need>
Orientation (ORIENT_PROP)
"awt.print.orientation" = "portrait" | "landscape"
Papersize (PAPERSIZE_PROP)
"awt.print.paperSize" = "letter" | "legal" | "executive" | "a4"
there is no documentation on what properties can be legally passed in this
parameter. Because of this, the parameter is unusable.
mei.chan@Corp 1997-03-28
A custonmer has called in and requested for the supported properties since
the documentation was found lacking on this.
I searched through the source code and found them, here they are:
Destination: (DEST_PROP)
"awt.print.destination" = "printer" | "file"
Printer Name: (PRINTER_PROP)
"awt.print.printer" = <name of printer you want to print to>
File Name: (FILENAME_PROP)
"awt.print.fileName" = <name of file you want to print to>
Number of copies to print: (NUMCOPIES_PROP)
"awt.print.numCopies" = <an integer, default is 1>
Any local site options: (OPTIONS_PROP)
"awt.print.options" = <whatever you need>
Orientation (ORIENT_PROP)
"awt.print.orientation" = "portrait" | "landscape"
Papersize (PAPERSIZE_PROP)
"awt.print.paperSize" = "letter" | "legal" | "executive" | "a4"
- relates to
-
JDK-4045174 RFE: provide a Java wrapper for printing on Win95
-
- Resolved
-