public class DynamicJasperHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XML_ENCODING |
Constructor and Description |
---|
DynamicJasperHelper() |
Modifier and Type | Method and Description |
---|---|
protected static void |
compileOrLoadSubreports(DynamicReport dr,
Map _parameters,
String namePrefix) |
protected static DynamicJasperDesign |
generateJasperDesign(DynamicReport dr) |
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
Collection collection) |
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
Connection con,
Map _parameters)
For running queries embebed in the report design
|
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
net.sf.jasperreports.engine.JRDataSource ds) |
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
net.sf.jasperreports.engine.JRDataSource ds,
Map _parameters)
Compiles and fills the reports design.
|
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
Map _parameters)
For compiling and filling reports whose datasource is passed as parameter (e.g.
|
static net.sf.jasperreports.engine.JasperPrint |
generateJasperPrint(DynamicReport dr,
LayoutManager layoutManager,
ResultSet resultSet) |
static net.sf.jasperreports.engine.JasperReport |
generateJasperReport(DynamicReport dr,
LayoutManager layoutManager,
Map generatedParams)
Compiles the report and applies the layout.
|
static net.sf.jasperreports.engine.JasperReport |
generateJasperReport(DynamicReport dr,
LayoutManager layoutManager,
Map generatedParams,
String nameprefix) |
static String |
generateJRXML(DynamicReport dr,
LayoutManager layoutManager,
Map _parameters,
String xmlEncoding)
Creates a jrxml file
|
static void |
generateJRXML(DynamicReport dr,
LayoutManager layoutManager,
Map _parameters,
String xmlEncoding,
OutputStream outputStream)
Creates a jrxml file
|
static void |
generateJRXML(DynamicReport dr,
LayoutManager layoutManager,
Map _parameters,
String xmlEncoding,
String filename)
Creates a jrxml file
|
static void |
generateJRXML(net.sf.jasperreports.engine.JasperReport jr,
String xmlEncoding,
String filename) |
protected static void |
registerParameters(DynamicJasperDesign jd,
DynamicReport dr) |
static void |
registerParams(DynamicJasperDesign jd,
Map _parameters)
For every String key, it registers the object as a parameter to make it available
in the report.
|
protected static void |
visitSubreport(DynamicReport parentDr,
Subreport subreport) |
protected static void |
visitSubreports(DynamicReport dr,
Map _parameters)
Performs any needed operation on subreports after they are built like ensuring proper subreport with
if "fitToParentPrintableArea" flag is set to true
|
public static final String DEFAULT_XML_ENCODING
protected static DynamicJasperDesign generateJasperDesign(DynamicReport dr) throws CoreException
CoreException
protected static void registerParameters(DynamicJasperDesign jd, DynamicReport dr)
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, net.sf.jasperreports.engine.JRDataSource ds) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Collection collection) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, ResultSet resultSet) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, net.sf.jasperreports.engine.JRDataSource ds, Map _parameters) throws net.sf.jasperreports.engine.JRException
dr
- the DynamicReportlayoutManager
- the object in charge of doing the layoutds
- The datasource_parameters
- Map with parameters that the report may neednet.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Connection con, Map _parameters) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- con
- _parameters
- net.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperPrint generateJasperPrint(DynamicReport dr, LayoutManager layoutManager, Map _parameters) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- _parameters
- net.sf.jasperreports.engine.JRException
public static String generateJRXML(DynamicReport dr, LayoutManager layoutManager, Map _parameters, String xmlEncoding) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- _parameters
- xmlEncoding
- (default is UTF-8 )net.sf.jasperreports.engine.JRException
public static void generateJRXML(DynamicReport dr, LayoutManager layoutManager, Map _parameters, String xmlEncoding, OutputStream outputStream) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- _parameters
- xmlEncoding
- (default is UTF-8 )outputStream
- net.sf.jasperreports.engine.JRException
public static void generateJRXML(DynamicReport dr, LayoutManager layoutManager, Map _parameters, String xmlEncoding, String filename) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- _parameters
- xmlEncoding
- (default is UTF-8 )filename
- the path to the destination filenet.sf.jasperreports.engine.JRException
public static void generateJRXML(net.sf.jasperreports.engine.JasperReport jr, String xmlEncoding, String filename) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
protected static void compileOrLoadSubreports(DynamicReport dr, Map _parameters, String namePrefix) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
public static void registerParams(DynamicJasperDesign jd, Map _parameters)
jd
- _parameters
- public static net.sf.jasperreports.engine.JasperReport generateJasperReport(DynamicReport dr, LayoutManager layoutManager, Map generatedParams) throws net.sf.jasperreports.engine.JRException
dr
- layoutManager
- generatedParams
- net.sf.jasperreports.engine.JRException
public static net.sf.jasperreports.engine.JasperReport generateJasperReport(DynamicReport dr, LayoutManager layoutManager, Map generatedParams, String nameprefix) throws net.sf.jasperreports.engine.JRException
net.sf.jasperreports.engine.JRException
protected static void visitSubreports(DynamicReport dr, Map _parameters)
dr
- _parameters
- net.sf.jasperreports.engine.JRException
protected static void visitSubreport(DynamicReport parentDr, Subreport subreport)
Copyright © 2006–2015 FDV Solutions. All rights reserved.