Generating reports with JasperReports Sean C. Sullivan Portland Java Users Group April 2004.

Slides:



Advertisements
Similar presentations
cViewSUITE View, Schedule & Distribute your Crystal Reports
Advertisements

OCEAN DATA SYSTEMS Presents Wonderware HMI Reports
Tekla Structures User Meeting 2008
Alternative FILE formats
1 Actuate Corporation © 2010 THE BIRT COMPANY THE BIRT COMPANY THE BIRT COMPANY THE BIRT COMPANY THE BIRT COMPANY THE BIRT COMPANY THE BIRT COMPANY THE.
Visual Designer for JasperReports
Brief Introduction to Java and C# Dahai Guo Oracle Certified Java Programmer (SCJP) Associate Professor and Program Director Software Engineering Program.
Agenda What is BIRT? BIRT Features and Report Gallery Scripting BIRT
Tutorial 8 Sharing, Integrating and Analyzing Data
Solutions Summit 2014 Introducing Ad hoc Reporting with Jaspersoft Studio John Snyder.
Introduction to SQL Server 2005 Reporting Services Peter Blackburn Boost Data Limited
Oracle XML Publisher Integration with PeopleSoft By, Mr. Venkat.
Analyzing your OPC Data Introduction to OPCReport.NET Nathan Pocock Chief Architect & Developer Direct Line: +1 (704)
Collections Management Museums Reporting in KE EMu.
Reporting in EMu Crystal != Reporting or Why is reporting so difficult and can we do anything about it? Bernard Marshall KE Software.
SQL Server Reporting Services
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Students: Ilya Paskhover, Itay Gal Supervisors: Oleg Rokhlenko, Nadav Golbandi.
SQL Server Reporting Services London Database Developer Forum Anoop Patel.
Session 3 Access to Reporting Services Adam Cogan Database Architect ssw.com.au.
Tim Leung SQL Bits October  Features and Advantages  Architecture  Installation  Creating Reports.
Copyright © Team #4 CSCI 6838 Spring Ad Hoc Graphical Reports CSCI Research Project and Seminar Team #4 March 1, 2007.
MAVEN-BLUEMARTINI Yannick Robin. What is maven-bluemartini?  maven-bluemartini is Maven archetypes for Blue Martini projects  Open source project on.
Copyright © 2005, 2006 Beta V Corporation All rights reserved Hitchhiker’s Guide to Visual Studio and SQL Server – Innovations in Reporting William R.
SiS Technical Training Development Track Day 8. Agenda  Quick Overview of PeopleSoft Security  Understand Permission Lists, Roles, User and Tree Security.
Software Engineering 2003 Jyrki Nummenmaa 1 CASE Tools CASE = Computer-Aided Software Engineering A set of tools to (optimally) assist in each.
1 CS6320 – Deployment and Context L. Grewe 2 The Servlet Container Servlets run in a container sometimes called the Servlet engine. Servlets run in a.
Max Planck Institute for Psycholinguistics Tool development report H. Brugman MPI Nijmegen.
1 Producing Rich Internet Applications with an Open Source Platform Martin Cadirola Ecotronics.
JasperReports and iReport Training Joe Ferrall Senior Programmer/Analyst - NWOCA.
OracleAS Reports Services. Problem Statement To simplify the process of managing, creating and execution of Oracle Reports.
Interactive report designer ADO.Net MS SQL Server OleDB ODBC Oracle SQL MySQL Firebird SQL Postgre SQL XML Business Objects What types of data does Stimulsoft.
XML Publisher Business Applications Government Forms.
Peoplesoft XML Publisher Integration with PeopleTools -Jayalakshmi S.
JBoss Developer Studio BIRT Plugin. BIRT - Business Intelligence and Reporting Tools. BIRT plugin for JBoss Developer Studio is an Eclipse-based open.
UWG 2013 Meeting PO.DAAC Web Services Demo. What are PO.DAAC Web Services?
SQL Server 2005 Reporting Services: Product Overview Niran Luckcanakul (MCSD, MCDBA, MCT) Project manager ISONET Co.,Ltd.
Agenda Demo Schema review Code structure Issues. Schema review Relationships between tables Temporary tables Views The “tenMinuteJob”
An Introduction to Visual Basic.NET. What is.NET.Net is a new framework for developing windows-based and web-based applications within the Microsoft environment.
© 2006 by «Author»; made available under the EPL v1.0 | Date | Other Information, if necessary Jason Weathersby BIRT Evangelist, Actuate Corp. Leveraging.
SQL Reporting Services From a Developers Perspective Adam Calderon Principal Engineer Interknowlogy LLC
Automatic Report Generation for WLCG/EGEE D. D. Sonvane (Gridview Team) B.A.R.C.
AutoTester & UAT Automation Framework By SSTZ-UAT.
IBM Software Group ® Context-Sensitive Help with the DITA Open Toolkit Jeff Antley IBM October 4, 2007.
“This presentation is for informational purposes only and may not be incorporated into a contract or agreement.”
Ad Hoc Graphical Reports Ad Hoc Graphical Reports Copyright © Team #4 CSCI 6838 Spring CSCI Research Project and Seminar Team# 4 (
1 Overview of JasperReport Dec 27, Current Reporting Library iText for PDF report generation iText is a powerful PDF generation engine How can.
Lesson 1 Operating Systems, Part 1. Objectives Describe and list different operating systems Understand file extensions Manage files and folders.
TimeTable Publisher High Level Design Frank Purcell Location Based Services Group August 15, 2006.
© 2006 Altova GmbH. All Rights Reserved. Altova ® Product Line Overview.
Chabot – Las Positas Community College District Reporting Strategy.
Dean Anderson Polk County, Oregon GIS in Action 2014 Modifying Open Source Software (A Case Study)
Chemical lot - HOW: Infrastructure set up based on SeaDataNet V1 efficient distributed Marine Data Management Infrastructure; Principle of “ADOPTED AND.
What’s New in Fiddler2 Eric Lawrence fiddler2.com/perf/
® IBM Software Group © 2006 IBM Corporation Rational Asset Manager v7.2 Using Scripting Tutorial for using command line and scripting using Ant Tasks Carlos.
EMI INFSO-RI Metrics report visualization and reporting Lars Barlindhaug (CERN)
GridView - Presentation of Work done at CERN by D. D. Sonvane B.A.R.C.
Enterprise Oracle Solutions Oracle Report Manager The New ADI and More Revised:June 20091Report Manager/SROAUG Presentation.
SQL Server Reporting Services for.NET Developers Bret Stateham
Java High level programming language ◦ Sun Microsystems ◦ ORACLE acquired Java Development Kit – JDK Java Runtime Environment – JRE Java Virtual Machine.
Solvency II Tripartite template V2 and V3 Presentation of the conversion tools proposed by FundsXML France.
JasperReports Open Source Reporting Engine. JasperReports Reporting Engine & Compiler Various Input Options – XML, Hibernate, JDBC, CSV… Various Output.
Java SWING and Model View Controller (MVC)
Data Mining.
Visual Studio Team Foundation Server
João Poças, Methodology and Information Systems Department
InControl R2 Overview Running Reports.
JasperReports.
Topology Comparison PowerWorld Users Tool Zach Gill Sanford
SQL Server 2005 Reporting Services
Presentation transcript:

Generating reports with JasperReports Sean C. Sullivan Portland Java Users Group April 2004

Agenda JasperReports JasperAssistant

JasperReports open source Java reporting tool

Using JasperReports 1.Create a JRXML file 2.Load the JRXML file 3.Compile the report 4.Fill the report with data 5.Export the report (PDF, HTML, etc)

Hello Jasper import dori.jasper.engine.*; import dori.jasper.engine.design.*; import java.sql.*; JasperDesign design = JasperManager.loadXmlDesign("hello.jrxml"); JasperReport report = JasperManager.compileReport(design);

Hello Jasper ResultSet rs = getResultSet(); JRDataSource dataSource = new JRResultSetDataSource(rs); Map params = new java.util.HashMap(); params.put("Bonus", new Integer(12000)); params.put("Year", “2004”);

Hello Jasper JasperPrint print = JasperManager.fillReport( report, param, dataSource); JasperExportManager.exportReportToHtmlFile( print, "hello.html"); JasperExportManager.exportReportToPdfFile( print, "hello.pdf"); JasperExportManager.exportReportToXmlFile( print, "hello.xml", false);

JasperReports 101 design objects –JasperDesign report objects –JasperReport datasource objects –JRDataSource print objects –JasperPrint

XML report templates jasperreport.dtd File extension: jrxml

Example: JRXML file

JasperDesign objects JasperManager.loadXMLDesign JasperManager.loadDesign

Manager classes dori.jasper.engine.JasperManager dori.jasper.engine.JasperCompileManager dori.jasper.engine.JasperFillManager dori.jasper.engine.JasperPrintManager dori.jasper.engine.JasperExportManager

Compiling designs JasperDesign design = JasperManager.loadXmlDesign("metrics.jrxml"); JasperReport report = JasperManager.compileReport(design);

Ant task: <jrc srcdir="${src.reports.dir}" destdir="${build.dir}/reports" tempdir="${build.dir}/temp" keepjava="true" xmlvalidation="true">

Data sources a data source is an object that provides data to Jasper's report engine do not confuse with javax.sql.DataSource

JRDataSource interface public interface JRDataSource { public boolean next() throws JRException; public Object getFieldValue(JRField field) throws JRException; }

Data source classes JRResultSetDataSource JRBeanArrayDataSource JRBeanCollectionDataSource JRMapArrayDataSource JRMapCollectionDataSource JRTableModelDataSource

Output formats CSV (JRCsvExporter) JPEG PDF (JRPdfExporter) XLS (JRXlsExporter) XML (JRXmlExporter) HTML (JRHtmlExporter)

JasperReports viewers Swing applications –dori.jasper.view.JasperViewer –dori.jasper.view.JasperDesignViewer

JasperViewer

JasperAssistant visual report designer commercial tool (not open source)

JasperAssistant JasperAssistant runs inside Eclipse

Demo: JasperAssistant

Open source projects

Commercial software ReportMill Actuate Windward Reports Crystal Reports Oracle Reports Cognos ReportNet Hyperion Reports

Beyond JasperReports Who is allowed to create and modify report templates? Where are the report templates stored? How will you publish and distribute the reports? Do you need to archive the reports? Will you generate reports on demand or on a fixed schedule (nightly, weekly) ? Is user A allowed to view report B?

Conclusion Download JasperReports today