public class JRPrintServiceExporter extends JRAbstractExporter implements java.awt.print.Printable
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
Modifier and Type | Field and Description |
---|---|
protected boolean |
displayPageDialog |
protected boolean |
displayPageDialogOnlyOnce |
protected boolean |
displayPrintDialog |
protected boolean |
displayPrintDialogOnlyOnce |
protected JRGraphics2DExporter |
exporter |
protected int |
reportIndex |
classLoader, classLoaderSet, dateFormatCache, endPageIndex, fileResolver, fileResolverSet, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_CELL_FORMULA, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, urlHandlerFactory, urlHandlerFactorySet
Constructor and Description |
---|
JRPrintServiceExporter() |
Modifier and Type | Method and Description |
---|---|
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) |
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters
protected JRGraphics2DExporter exporter
protected boolean displayPageDialog
protected boolean displayPageDialogOnlyOnce
protected boolean displayPrintDialog
protected boolean displayPrintDialogOnlyOnce
protected int reportIndex
public void exportReport() throws JRException
JRExporter
exportReport
in interface JRExporter
exportReport
in class JRAbstractExporter
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 static boolean checkAvailablePrinters()
public java.lang.Boolean[] getPrintStatus()
public javax.print.PrintService getPrintService()
PrintService
instance used by the exporter last time the exportReport() method was run.protected java.lang.String getExporterKey()
getExporterKey
in class JRAbstractExporter
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com