advanced jasper reports

23
Introduction to Jasper Reports – Ankur Gupta

Upload: mindfire-solutions

Post on 10-May-2015

563 views

Category:

Software


9 download

DESCRIPTION

In this presentation one will get to know more & more features and customization which could be brought about in Reports.

TRANSCRIPT

Page 1: Advanced Jasper Reports

Introduction to Jasper Reports – Seminar 2Ankur Gupta

Page 2: Advanced Jasper Reports

About MeSCJP/OCJP - Oracle Certified Java ProgrammerMCP:70-480 - Specialist certification in HTML5

with JavaScript and CSS3 ExamM101J: MongoDB for Java Developers

Skills : Servoy, Java, JavaScript, HTML, Jasper Reports , iReport, MongoDB, JavaFX

Connect Me :Facebook : https://www.facebook.com/ankur10augLinkedIn: http://www.linkedin.com/pub/ankur-gupta/51/895/910Twitter: https://twitter.com/ankur_augGoogle+ : https://plus.google.com/116451164261752827176

Blog: http://ankurthetechie.blogspot.in, http://community.jaspersoft.com/planet YouTube video Stream: http://www.youtube.com/user/ankurgupta46/videos

Contact Me :Email : [email protected]: mfsi_ankurg

Page 3: Advanced Jasper Reports

Recap

Introduction to reporting What is Jasper Reports Tools that can be used to create Jasper Reports What is iReport Various editions of iReport (Community/Professional) Basic elements of the report. Introduction to usage of Parameters and variables . Demonstration in iReports (Using sample database). Peek into the next seminar.

Page 4: Advanced Jasper Reports

Adgenda

Quick Recap of Previous Seminar

Datasources

Grouping

Importance of Evaluation Time

Charts

Sub- Reports

Lists

Sub-Reports Vs Lists

Scriptlets

Styles

Page 5: Advanced Jasper Reports

Datasources in iReportDatasource Implementation Class

JDBC net.sf.jasperreports.engine.JRResultSetDataSource

JavaBean net.sf.jasperreports.engine.data.JRBeanCollectionDataSource, net.sf.jasperreports.engine.data.JRBeanArrayDataSource

Map-based net.sf.jasperreports.engine.data.JRMapArrayDataSource, net.sf.jasperreports.engine.data.JRMapCollectionDataSource

TableModel net.sf.jasperreports.engine.data.JRTableModelDataSource

XML net.sf.jasperreports.engine.data.JRXmlDataSource

CSV net.sf.jasperreports.engine.data.JRCsvDataSource

XLS net.sf.jasperreports.engine.data.JRXlsDataSource

Empty net.sf.jasperreports.engine.JREmptyDataSource

Page 6: Advanced Jasper Reports

Grouping in Reports

Page 7: Advanced Jasper Reports

Importance of Evaluation Time in ReportsTypes of Evaluation Time

1.None2.Report3.Group4.Column5.Page6.Now 7.Band8.Auto

Page 8: Advanced Jasper Reports

Charts

Page 9: Advanced Jasper Reports

Tools can be used to create charts in Jasper Reports

Inbuilt Chart item in Palette of iReport / JasperSoft Studio

Custom Charts using JFreeCharts (will be taken up in the next seminar)

Page 10: Advanced Jasper Reports

Sub-report

Utility of using subreport:

1.Implements Report in Report Structure

2.Provides full structure of the subreport

3.Pass and Return values to provide dynamism to the main report

Page 11: Advanced Jasper Reports

Lists

Page 12: Advanced Jasper Reports

Lists Vs Sub Report

Advantages of using List:

1.No Extra resources

2.In Report calculation

Advantages of using Subreport

1.Pass and Return values to provide dynamism to the main report

2.Acts as completely new report with all the features of a individual report, like having title, header, footer, etc.

Page 13: Advanced Jasper Reports

Scriptlet

Page 14: Advanced Jasper Reports

How Scriptlets can be utilized.

Field Manipulation

Variable Manipulation

Report Data Manipulation

Integration with Java Foundation Components, such as SWING etc.

Page 15: Advanced Jasper Reports

How to achieve customization using Scriptlets User Defined Functions

Predefined functions

Page 16: Advanced Jasper Reports

Pre- Defined Functions

beforeReportInit()

afterReportInit()

beforePageInit()

afterPageInit()

beforeColumnInit()

afterColumnInit()

beforeGroupInit(String)

afterGroupInit(String groupName)

beforeDetailEval()

afterDetailEval()

Page 17: Advanced Jasper Reports

User Defined Functions

Page 18: Advanced Jasper Reports

Styles in Jasper Reports

Page 19: Advanced Jasper Reports

How to include Styles in Jasper Reports

1. Creating Styles in the Report itself (More like local Style sheet)

2. Creating External jrtx File which could be linked with any Report (More like a global Style)

Page 20: Advanced Jasper Reports

Demo

Page 21: Advanced Jasper Reports

Peek into the next seminar.

Demonstration Of custom Datasource

Cascading Parameters

Drill Down Reports

Collection Parameters

Scheduling Reports

Utility of Print When Expession

and much more …

Page 22: Advanced Jasper Reports

Questions

Page 23: Advanced Jasper Reports

Thankyou