| Modifier and Type | Field and Description |
|---|---|
protected static Locale |
DEFAULT_REPORT_LOCALE
Default Locale for reports.
|
protected static Locale |
DEFAULT_XML_LOCALE
Default Locale for xml parsing.
|
protected static String |
JASPER_SUFFIX
Type for the compiled jasper files.
|
| Constructor and Description |
|---|
JasperReportsPrint() |
| Modifier and Type | Method and Description |
|---|---|
void |
exportPDF(Document data,
String dialogName,
File file,
OutputStream os,
Map<String,Object> params)
Carries out the filling and the export of the pdf.
|
protected net.sf.jasperreports.engine.JasperPrint |
fillReport(Document data,
Map<String,Object> params,
String dialogName)
Fills the report.
|
protected Document |
getDocumentFromURI(URI data)
Retrieves a document based on a URI.
|
protected Document |
getDocumentFromXML(String data)
Retrieves a document based on an input string.
|
protected MessageDispatcher |
getMessageDispatcher() |
protected net.sf.jasperreports.engine.JasperReport |
getReport(String dialogName)
Retrieves the print template for the dialog name.
|
boolean |
printReport(Document data,
Map<String,Object> params,
String dialogName,
String printerName)
Carries out the actual filling and printing.
|
boolean |
printReport(String data,
Map<String,Object> params,
String dialogName,
String printerName)
Carries out the actual filling and printing.
|
boolean |
printReport(URI data,
Map<String,Object> params,
String dialogName,
String printerName)
Carries out the actual filling and printing.
|
protected static final Locale DEFAULT_XML_LOCALE
protected static final Locale DEFAULT_REPORT_LOCALE
protected static final String JASPER_SUFFIX
public boolean printReport(Document data, Map<String,Object> params, String dialogName, String printerName)
G9PrintprintReport in interface G9Printdata - Data formed in a documentparams - ParametersdialogName - The dialog to be printedprinterName - The name of the printer to print totrue if OK is pressed in the print
dialog or printing to an explicit printer succeeded.public boolean printReport(URI data, Map<String,Object> params, String dialogName, String printerName)
G9PrintprintReport in interface G9Printdata - Data referenced from an URIparams - ParametersdialogName - The dialog to be printedprinterName - The name of the printer to print totrue if OK is pressed in the print
dialog or printing to an explicit printer succeeded.public boolean printReport(String data, Map<String,Object> params, String dialogName, String printerName)
G9PrintprintReport in interface G9Printdata - Data formed in an XMLparams - ParametersdialogName - The dialog to be printedprinterName - The name of the printer to print totrue if OK is pressed in the print
dialog or printing to an explicit printer succeeded.protected net.sf.jasperreports.engine.JasperPrint fillReport(Document data, Map<String,Object> params, String dialogName)
data - Data as documentparams - Input parametersdialogName - Dialog nameprotected net.sf.jasperreports.engine.JasperReport getReport(String dialogName)
dialogName - Name of the dialogpublic void exportPDF(Document data, String dialogName, File file, OutputStream os, Map<String,Object> params)
G9Printprotected Document getDocumentFromURI(URI data)
data - URI referenceprotected Document getDocumentFromXML(String data)
data - Data formed as an XMLprotected MessageDispatcher getMessageDispatcher()
Copyright © 2006–2017 Esito AS. All rights reserved.