public class JRPrinterAWT
extends java.lang.Object
implements java.awt.print.Printable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORT |
static java.lang.String |
EXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE |
Modifier | Constructor and Description |
---|---|
protected |
JRPrinterAWT(JasperPrint jrPrint) |
|
JRPrinterAWT(JasperReportsContext jasperReportsContext,
JasperPrint jasperPrint) |
Modifier and Type | Method and Description |
---|---|
static long |
getImageSize(JasperPrint jasperPrint,
float zoom)
Deprecated.
To be removed.
|
static void |
initPrinterJobFields(java.awt.print.PrinterJob job)
Fix for bug ID 6255588 from Sun bug database
|
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex) |
boolean |
printPages(int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog) |
static boolean |
printPages(JasperPrint jrPrint,
int firstPageIndex,
int lastPageIndex,
boolean withPrintDialog) |
java.awt.Image |
printPageToImage(int pageIndex,
float zoom) |
static java.awt.Image |
printPageToImage(JasperPrint jrPrint,
int pageIndex,
float zoom) |
public static final java.lang.String EXCEPTION_MESSAGE_KEY_INVALID_PAGE_RANGE
public static final java.lang.String EXCEPTION_MESSAGE_KEY_ERROR_PRINTING_REPORT
protected JRPrinterAWT(JasperPrint jrPrint) throws JRException
JRException
public JRPrinterAWT(JasperReportsContext jasperReportsContext, JasperPrint jasperPrint) throws JRException
JRException
public static boolean printPages(JasperPrint jrPrint, int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException
JRException
printPages(int, int, boolean)
public static java.awt.Image printPageToImage(JasperPrint jrPrint, int pageIndex, float zoom) throws JRException
JRException
printPageToImage(int, float)
public boolean printPages(int firstPageIndex, int lastPageIndex, boolean withPrintDialog) throws JRException
JRException
public int print(java.awt.Graphics graphics, java.awt.print.PageFormat pageFormat, int pageIndex) throws java.awt.print.PrinterException
print
in interface java.awt.print.Printable
java.awt.print.PrinterException
public java.awt.Image printPageToImage(int pageIndex, float zoom) throws JRException
JRException
public static void initPrinterJobFields(java.awt.print.PrinterJob job)
job
- print job that the fix applies topublic static long getImageSize(JasperPrint jasperPrint, float zoom)
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com