The following methods are provided for printing reports:
Parameters
Each String has been defined in interface PrintConfig. Interface PrintConfig is located in package jet.bean. For example, you can implement PrintConfig and call its fields as below:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT).
Notes:
Examples
Under JDK1.2 or later, if you use the JDK1.2 printing method (boolean bUseJDK11), you can call the printReport method, as shown below
|
Under JDK1.2 or later, if you use the JDK1.1 printing method, you are best recommended to not getPrintJob. Instead, just can call:
bean.printReport(null, null, false, false, true);
Under JDK 1.2 or later, if you use the JDK1.1 printing method and select a network printer, you can call the printReport method as shown below:
bean.printReport(null, null, false, false, true, false, "job1", "\\\\GUOF\\HP LaserJet 6L Pro PCL5e");
Under JDK 1.2 or later, if you use the JDK1.1 printing method and select a local printer, you can call the printReport method as shown below:
bean.printReport(null, null, false, false, true, false, "job1", "HP LaserJet 6L Pro PCL5e");