
This format is selected if you want to print the reports directly. If you select Print as your output type the Launch to Viewer and the Save to Disk check boxes are disabled. Click the Next button. The screen appears as shown in Figure 5.6, “Print Options”.
On clicking the Add button the Print Attribute dialog window appears. There are a number of Attribute Names to choose from:
Chromacity: When this attribute is selected in the combo box the Chromacity combo box appears from which the monochrome or color option can be selected. Of course, this won't let you print colour on a black and white printer!
Monochrome: When this option is selected the report pages are printed in shades of gray.
Color: The report pages are printed in color (subject to printer support, of course).
Copies: This attribute is used to specify the number of copies to be printed. On selecting this option the Copies field appears in which the number of copies are specified.
Job Name: This attribute is used to specify the name of the print job. A job's name is an arbitrary string defined by the client. This does not need to be unique between different jobs.
NumberUp: This attribute is used to specify the number of print stream pages to impose upon a single side of an instance of the selected medium. That is if the number up value is 4, the printer must place 4 print stream pages on a single side of the paper.
Page Range: When this option is selected, you can control the range of print stream pages that the printer object uses for each copy of the document.
Printer Resolution: This attribute is used to specify the exact resolution supported by the printer or to be used for a print job.
Print Quality: This attribute is used to specify the print quality that the printer uses for the job. There are three Print Quality options Draft, Normal or High. Draft is the lowest quality available on the printer.
Sides: This attribute is used to specify how print-stream pages are to be imposed upon the sides of an instance of selected medium. There are various options such as Duplex, tumble, etc.
For a more detailed information of the attribute types and their uses refer to the javax.print.attribute.standard package under the link http://java.sun.com/j2se/1.4.2/docs/api