100 likes | 337 Views
JasperReports and iReport Training. Joe Ferrall Senior Programmer/Analyst - NWOCA. 2 Components. JasperReports http://jasperforge.org/sf/projects/jasperreports iReport http://www.jasperforge.org/sf/projects/ireport. Jasper Reports. JasperReports Reporting engine Report compiler
E N D
JasperReports and iReport Training Joe Ferrall Senior Programmer/Analyst - NWOCA
2 Components • JasperReports • http://jasperforge.org/sf/projects/jasperreports • iReport • http://www.jasperforge.org/sf/projects/ireport
Jasper Reports • JasperReports • Reporting engine • Report compiler • Various output options • PDF, HTML, XLS, CSV, XML, RTF, TXT • Various data source options • JDBC, EJB, POJO, Hibernate, XML, extensible… • Integrated charting • Extensive formatting capabilities
iReport • Visual design tool • Comes with latest .jar for JasperReports • Capable of designing reports/forms, as well as compiling report definitions
Files of interest • .jrxml – report definition (xml format) • .jasper – compiled report definition • Note: iReport can open both for editing
iReport Settings • Options -> Settings • General Tab • Compiler Tab • Use the reports directory for compiles • Autosave before compiling • Compiler – JasperReports default • External Programs • Setup for your system • Options -> Compatibility • Set to appropriate version for the application working with (currently 1.2.0)
Customizing existing reports • Compiled .jasper reports found under WEB-INF/reports • These are the default reports, do not modify/replace these • If customizations are needed, these should be copied and then changed
Common Tasks • Moving report elements • Changing the font of report elements • Adding/Removing report elements • Text (static and field) • Images • Other formatting • (Demo)
Completing Changes • Save new report definition as .jrxml • Compile report, this will produce a new .jasper file • Follow directions for setting up a custom configuration file and override the property for the report file to point to the new custom report. • http://wiki.ssdt.oecn.k12.oh.us
Presentation • Copies of this presentation, the steps for setting up the custom configuration, and additional USASWeb resources can be found under the SSDT Public Wiki at: • http://wiki.ssdt.oecn.k12.oh.us