Jasperreport"
From Documentation
Tmillsclare (talk | contribs) m (→Jasperreport) |
|||
Line 14: | Line 14: | ||
= Example = | = Example = | ||
+ | [[Image:ZKComRef_Jasperreport_Examples.PNG]] | ||
− | + | <source lang="xml" > | |
− | + | <jasperreport id="report" height="360px" /> | |
+ | |||
+ | <zscript> | ||
+ | import org.zkoss.zkdemo.userguide.CustomDataSource; | ||
+ | |||
+ | //Preparing parameters | ||
+ | Map parameters = new HashMap(); | ||
+ | parameters.put("ReportTitle", "Address Report"); | ||
+ | parameters.put("DataFile", "CustomDataSource from java"); | ||
+ | |||
+ | report.setSrc("/userguide/data/jasperreport.jasper"); | ||
+ | report.setParameters(parameters); | ||
+ | report.setDatasource(new CustomDataSource()); | ||
+ | report.setType("pdf"); | ||
+ | </zscript> | ||
+ | </source> | ||
=Supported events= | =Supported events= |
Revision as of 02:31, 19 May 2010
Jasperreport
- Demonstration: Jasperreport
- Java API: Jasperreport
- JavaScript API: Jasperreport
Employment/Purpose
The JasperReport component. It is used to generate a Jasper report into an inline frame
Example
<jasperreport id="report" height="360px" />
<zscript>
import org.zkoss.zkdemo.userguide.CustomDataSource;
//Preparing parameters
Map parameters = new HashMap();
parameters.put("ReportTitle", "Address Report");
parameters.put("DataFile", "CustomDataSource from java");
report.setSrc("/userguide/data/jasperreport.jasper");
report.setParameters(parameters);
report.setDatasource(new CustomDataSource());
report.setType("pdf");
</zscript>
Supported events
None | None |
Supported Children
*NONE
Use cases
Version | Description | Example Location |
---|---|---|
5.0.2 | How to use Dynamic Jasper Reports | http://www.zkoss.org/forum/listComment/10873 |
Version History
Version | Date | Content |
---|---|---|
5.0.2 | 5/18/2010 | Initialization |