er.jasperreports
Class ERJRUtilities
java.lang.Object
er.jasperreports.ERJRUtilities
public class ERJRUtilities
- extends java.lang.Object
8/24/2010: All methods related to on the fly compilation of jrxml templates have been removed since this does not make sense
- Author:
- kieran
Method Summary |
static java.io.File |
runCompiledReportToPDFFile(java.lang.String compiledReportName,
java.lang.String frameworkName,
java.util.Map parameters,
net.sf.jasperreports.engine.JRDataSource dataSource)
It is important to use the JasperRunManager method called below and avoid the use of InputStream etc because
by providing the file pathname of the report to the JasperRunManager, it will then look for images defined by String
as filenames and paths relative to the file path of the report template itself. |
static java.lang.String |
toString(net.sf.jasperreports.engine.JRField jrField)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERJRUtilities
public ERJRUtilities()
runCompiledReportToPDFFile
public static java.io.File runCompiledReportToPDFFile(java.lang.String compiledReportName,
java.lang.String frameworkName,
java.util.Map parameters,
net.sf.jasperreports.engine.JRDataSource dataSource)
- It is important to use the JasperRunManager method called below and avoid the use of InputStream etc because
by providing the file pathname of the report to the JasperRunManager, it will then look for images defined by String
as filenames and paths relative to the file path of the report template itself. Thus making it easy for us to implement
report images by just dropping them into the Resources directory alongside the jasper report template.
- Parameters:
compiledReportName
- frameworkName
- parameters
- dataSource
-
- Returns:
- the completed report PDF file
toString
public static java.lang.String toString(net.sf.jasperreports.engine.JRField jrField)
- Parameters:
jrField
-
- Returns:
- something more useful than the built-in toString method for debugging
Copyright © 2002 – 2007 Project Wonder.