Class JRPrinterAWT
- java.lang.Object
-
- net.sf.jasperreports.engine.print.JRPrinterAWT
-
-
Field Summary
Fields Modifier and Type Field Description static StringEXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORTstatic StringEXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE-
Fields inherited from interface java.awt.print.Printable
NO_SUCH_PAGE, PAGE_EXISTS
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJRPrinterAWT(JasperPrint jrPrint)JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidinitPrinterJobFields(PrinterJob job)Fix 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)ImageprintPageToImage(int pageIndex, float zoom)static ImageprintPageToImage(JasperPrint jrPrint, int pageIndex, float zoom)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE
public static final String EXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE
- See Also:
- Constant Field Values
-
EXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORT
public static final String EXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JRPrinterAWT
protected JRPrinterAWT(JasperPrint jrPrint) throws JRException
- Throws:
JRException
-
JRPrinterAWT
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
- Throws:
JRException
-
-
Method Detail
-
printPages
public static boolean printPages(JasperPrint jrPrint, int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException
- Throws:
JRException- See Also:
printPages(int, int, boolean)
-
printPageToImage
public static Image printPageToImage(JasperPrint jrPrint, int pageIndex, float zoom) throws JRException
- Throws:
JRException- See Also:
printPageToImage(int, float)
-
printPages
public boolean printPages(int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException- Throws:
JRException
-
print
public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) throws PrinterException
- Specified by:
printin interfacePrintable- Throws:
PrinterException
-
printPageToImage
public Image printPageToImage(int pageIndex, float zoom) throws JRException
- Throws:
JRException
-
initPrinterJobFields
public static void initPrinterJobFields(PrinterJob job)
Fix for bug ID 6255588 from Sun bug database- Parameters:
job- print job that the fix applies to
-
-