net.sf.jasperreports.engine.export
Class JRPrintServiceExporter
java.lang.Object
net.sf.jasperreports.engine.JRAbstractExporter
net.sf.jasperreports.engine.export.JRPrintServiceExporter
- All Implemented Interfaces:
- java.awt.print.Printable, JRExporter
public class JRPrintServiceExporter
- extends JRAbstractExporter
- implements java.awt.print.Printable
- Version:
- $Id: JRPrintServiceExporter.java 5180 2012-03-29 13:23:12Z teodord $
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
Fields inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex |
Fields inherited from interface java.awt.print.Printable |
NO_SUCH_PAGE, PAGE_EXISTS |
Method Summary |
static boolean |
checkAvailablePrinters()
|
void |
exportReport()
Actually starts the export process. |
protected java.lang.String |
getExporterKey()
|
javax.print.PrintService |
getPrintService()
Returns the PrintService instance used by the exporter last time the exportReport() method was run. |
java.lang.Boolean[] |
getPrintStatus()
Returns an array of java.lang.Boolean values, one for each appearance of the print dialog during the last export operation. |
int |
print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
|
Methods inherited from class net.sf.jasperreports.engine.JRAbstractExporter |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
exporter
protected JRGraphics2DExporter exporter
displayPageDialog
protected boolean displayPageDialog
displayPageDialogOnlyOnce
protected boolean displayPageDialogOnlyOnce
displayPrintDialog
protected boolean displayPrintDialog
displayPrintDialogOnlyOnce
protected boolean displayPrintDialogOnlyOnce
reportIndex
protected int reportIndex
JRPrintServiceExporter
public JRPrintServiceExporter()
- See Also:
JRPrintServiceExporter(JasperReportsContext)
JRPrintServiceExporter
public JRPrintServiceExporter(JasperReportsContext jasperReportsContext)
exportReport
public void exportReport()
throws JRException
- Description copied from interface:
JRExporter
- Actually starts the export process.
- Specified by:
exportReport
in interface JRExporter
- Specified by:
exportReport
in class JRAbstractExporter
- Throws:
JRException
print
public int print(java.awt.Graphics graphics,
java.awt.print.PageFormat pageFormat,
int pageIndex)
throws java.awt.print.PrinterException
- Specified by:
print
in interface java.awt.print.Printable
- Throws:
java.awt.print.PrinterException
checkAvailablePrinters
public static boolean checkAvailablePrinters()
getPrintStatus
public java.lang.Boolean[] getPrintStatus()
- Returns an array of java.lang.Boolean values, one for each appearance of the print dialog during the last export operation.
A Boolean.TRUE value in this array means that for that particular occurrence of the print dialog, the OK button was hit.
A Boolean.FALSE value means the respective print dialog was canceled.
getPrintService
public javax.print.PrintService getPrintService()
- Returns the
PrintService
instance used by the exporter last time the exportReport() method was run.
getExporterKey
protected java.lang.String getExporterKey()
- Specified by:
getExporterKey
in class JRAbstractExporter
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com