Class JRPrinterAWT
java.lang.Object
net.sf.jasperreports.engine.print.JRPrinterAWT
- All Implemented Interfaces:
Printable
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
Field Summary
FieldsFields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRPrinterAWT(JasperPrint jrPrint) JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) -
Method Summary
Modifier and TypeMethodDescriptionstatic voidFix for bug ID 6255588 from Sun bug databaseintprint(Graphics graphics, PageFormat pageFormat, int pageIndex) booleanprintPages(int firstPageIndex, int lastPageIndex, boolean withPrintDialog) static booleanprintPages(JasperPrint jrPrint, int firstPageIndex, int lastPageIndex, boolean withPrintDialog) printPageToImage(int pageIndex, float zoom) static ImageprintPageToImage(JasperPrint jrPrint, int pageIndex, float zoom)
-
Field Details
-
EXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE
- See Also:
-
EXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORT
- See Also:
-
-
Constructor Details
-
JRPrinterAWT
- Throws:
JRException
-
JRPrinterAWT
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException - Throws:
JRException
-
-
Method Details
-
printPages
public static boolean printPages(JasperPrint jrPrint, int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException - Throws:
JRException- See Also:
-
printPageToImage
public static Image printPageToImage(JasperPrint jrPrint, int pageIndex, float zoom) throws JRException - Throws:
JRException- See Also:
-
printPages
public boolean printPages(int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException - Throws:
JRException
-
print
- Specified by:
printin interfacePrintable- Throws:
PrinterException
-
printPageToImage
- Throws:
JRException
-
initPrinterJobFields
Fix for bug ID 6255588 from Sun bug database- Parameters:
job- print job that the fix applies to
-