Fa�ade class for filling compiled report designs with data from report data sources,
in order to produce page-oriented documents, ready-to-print.
All methods receive a Map object that should contain the values for the report parameters.
These value are retrieved by the engine using the corresponding report parameter name as the key.
There are two types of method signatures with regards to the data source
provided for filling the report:
| Method from net.sf.jasperreports.engine.JasperFillManager Detail: |
public static JasperPrint fillReport(String sourceFileName,
Map parameters) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
return fillReport(jasperReport, parameters);
}
Fills the compiled report design loaded from the specified file and returns
the generated report object. |
public static JasperPrint fillReport(InputStream inputStream,
Map parameters) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
return fillReport(jasperReport, parameters);
}
Fills the compiled report design loaded from the supplied input stream and returns
the generated report object. |
public static JasperPrint fillReport(JasperReport jasperReport,
Map parameters) throws JRException {
return JRFiller.fillReport(jasperReport, parameters);
}
Fills the compiled report design supplied as the first parameter and returns
the generated report object. |
public static JasperPrint fillReport(String sourceFileName,
Map parameters,
Connection connection) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
return fillReport(jasperReport, parameters, connection);
}
Fills the compiled report design loaded from the specified file and returns
the generated report object. |
public static JasperPrint fillReport(InputStream inputStream,
Map parameters,
Connection connection) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
return fillReport(jasperReport, parameters, connection);
}
Fills the compiled report design loaded from the supplied input stream and returns
the generated report object. |
public static JasperPrint fillReport(JasperReport jasperReport,
Map parameters,
Connection connection) throws JRException {
return JRFiller.fillReport(jasperReport, parameters, connection);
}
Fills the compiled report design supplied as the first parameter and returns
the generated report object. |
public static JasperPrint fillReport(String sourceFileName,
Map parameters,
JRDataSource dataSource) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
return fillReport(jasperReport, parameters, dataSource);
}
Fills the compiled report design loaded from the specified file and returns
the generated report object. |
public static JasperPrint fillReport(InputStream inputStream,
Map parameters,
JRDataSource dataSource) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
return fillReport(jasperReport, parameters, dataSource);
}
Fills the compiled report design loaded from the supplied input stream and returns
the generated report object. |
public static JasperPrint fillReport(JasperReport jasperReport,
Map parameters,
JRDataSource dataSource) throws JRException {
return JRFiller.fillReport(jasperReport, parameters, dataSource);
}
Fills the compiled report design supplied as the first parameter and returns
the generated report object. |
public static String fillReportToFile(String sourceFileName,
Map parameters) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperReport.getName() + ".jrprint");
String destFileName = destFile.toString();
fillReportToFile(jasperReport, destFileName, parameters);
return destFileName;
}
Fills the compiled report design loaded from the specified file.
The result of this operation is another file that will contain the serialized
JasperPrint object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint extension, located in the same directory as the source file. |
public static String fillReportToFile(String sourceFileName,
Map parameters,
Connection connection) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperReport.getName() + ".jrprint");
String destFileName = destFile.toString();
fillReportToFile(jasperReport, destFileName, parameters, connection);
return destFileName;
}
Fills the compiled report design loaded from the specified file.
The result of this operation is another file that will contain the serialized
JasperPrint object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint extension, located in the same directory as the source file. |
public static void fillReportToFile(String sourceFileName,
String destFileName,
Map parameters) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFileName);
fillReportToFile(jasperReport, destFileName, parameters);
}
Fills the compiled report design loaded from the file received as the first parameter
and places the result in the file specified by the second parameter. |
public static void fillReportToFile(JasperReport jasperReport,
String destFileName,
Map parameters) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters);
JRSaver.saveObject(jasperPrint, destFileName);
}
Fills the compiled report design received as the first parameter
and places the result in the file specified by the second parameter. |
public static String fillReportToFile(String sourceFileName,
Map parameters,
JRDataSource dataSource) throws JRException {
File sourceFile = new File(sourceFileName);
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFile);
File destFile = new File(sourceFile.getParent(), jasperReport.getName() + ".jrprint");
String destFileName = destFile.toString();
fillReportToFile(jasperReport, destFileName, parameters, dataSource);
return destFileName;
}
Fills the compiled report design loaded from the specified file.
The result of this operation is another file that will contain the serialized
JasperPrint object representing the generated document,
having the same name as the report design as declared in the source file,
plus the *.jrprint extension, located in the same directory as the source file. |
public static void fillReportToFile(String sourceFileName,
String destFileName,
Map parameters,
Connection connection) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFileName);
fillReportToFile(jasperReport, destFileName, parameters, connection);
}
Fills the compiled report design loaded from the file received as the first parameter
and places the result in the file specified by the second parameter. |
public static void fillReportToFile(JasperReport jasperReport,
String destFileName,
Map parameters,
Connection connection) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters, connection);
JRSaver.saveObject(jasperPrint, destFileName);
}
Fills the compiled report design received as the first parameter
and places the result in the file specified by the second parameter. |
public static void fillReportToFile(String sourceFileName,
String destFileName,
Map parameters,
JRDataSource dataSource) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(sourceFileName);
fillReportToFile(jasperReport, destFileName, parameters, dataSource);
}
Fills the compiled report design loaded from the file received as the first parameter
and places the result in the file specified by the second parameter. |
public static void fillReportToFile(JasperReport jasperReport,
String destFileName,
Map parameters,
JRDataSource dataSource) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters, dataSource);
JRSaver.saveObject(jasperPrint, destFileName);
}
Fills the compiled report design received as the first parameter
and places the result in the file specified by the second parameter. |
public static void fillReportToStream(InputStream inputStream,
OutputStream outputStream,
Map parameters) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
fillReportToStream(jasperReport, outputStream, parameters);
}
Fills the compiled report design loaded from the supplied input stream and writes
the generated report object to the output stream specified by the second parameter. |
public static void fillReportToStream(JasperReport jasperReport,
OutputStream outputStream,
Map parameters) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters);
JRSaver.saveObject(jasperPrint, outputStream);
}
Fills the compiled report design supplied as the first parameter and writes
the generated report object to the output stream specified by the second parameter. |
public static void fillReportToStream(InputStream inputStream,
OutputStream outputStream,
Map parameters,
Connection connection) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
fillReportToStream(jasperReport, outputStream, parameters, connection);
}
Fills the compiled report design loaded from the supplied input stream and writes
the generated report object to the output stream specified by the second parameter. |
public static void fillReportToStream(JasperReport jasperReport,
OutputStream outputStream,
Map parameters,
Connection connection) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters, connection);
JRSaver.saveObject(jasperPrint, outputStream);
}
Fills the compiled report design supplied as the first parameter and writes
the generated report object to the output stream specified by the second parameter. |
public static void fillReportToStream(InputStream inputStream,
OutputStream outputStream,
Map parameters,
JRDataSource dataSource) throws JRException {
JasperReport jasperReport = (JasperReport)JRLoader.loadObject(inputStream);
fillReportToStream(jasperReport, outputStream, parameters, dataSource);
}
Fills the compiled report design loaded from the supplied input stream and writes
the generated report object to the output stream specified by the second parameter. |
public static void fillReportToStream(JasperReport jasperReport,
OutputStream outputStream,
Map parameters,
JRDataSource dataSource) throws JRException {
JasperPrint jasperPrint = fillReport(jasperReport, parameters, dataSource);
JRSaver.saveObject(jasperPrint, outputStream);
}
Fills the compiled report design supplied as the first parameter and writes
the generated report object to the output stream specified by the second parameter. |