IReport
둘러보기로 가기
검색하러 가기
JasperReports를 위한 리포트 디자인 툴인 iReport (iReport-Designer for JasperReports)를 정리 한다.
- 홈페이지 : http://www.jaspersoft.com/JasperSoft_iReport.html, http://sourceforge.net/projects/ireport/, http://jasperforge.org/plugins/project/project_home.php?group_id=83
- 다운로드 : http://sourceforge.net/project/showfiles.php?group_id=64348
- 라이센스 : GPL
- 플랫폼 : Java
목차
설치 가이드
- 다운로드 사이트에서 "iReport-3.0.0-windows-installer.exe" 파일을 다운로드 한다.
- 다운로드 받은 파일을 실행하여 설치 한다.
사용자 가이드
Datasource의 종류
- iReport는 입력값으로 Datasource와 Parameter (Hash Map)를 받는다.
- Database JDBC connection
- Hibernate connection
- Spring loaded Hibernate connection
- Query Executer mode
- XML file data source : UTF-8
- Remote XML file datasource
- File CSV data source
- Microsoft Excel (xls) data source
- Empty data source
- JRDataSourceProvider
- Custom JRDataSource
- NetBeans Database JDBC connection
- JavaBeans set data source
- EJBQL connection
- XMLA Server
- Mondrian OLAP connection
보고서 종류
- 보고서 문서 양식
PDF, HTML, XLS, CSV, TXT, RTF, ODF, ODS, DOCX
- 보고서 종류
- Columnar report, Tabular report, Crosstabs
- Subreport
- Chart <-- JFreeChart
- Area, Bar, Bar 3D, Bubble, Line,
- Pie, Pie 3D, Scatter Plot, Stacked Bar, Stacked Bar 3D,
- Time Series, XY Area, XY Bar, XY Line charts
- Candlestick and High Low Open Close charts
보고서 구조와 구성 요소
- Report (8 Bands + 1 Background)
Title : 첫 페이지 Page Header : 모든 페이지 Column Header Group Header Detail : Fields, Parameters, Variables, Sub dataset Group Footer Column Footer Page Footer : 모든 페이지 Last Page Footer Summary : 마지막 페이지 Background : 모든 페이지, watermarks
- Report Elements
Line, Rectangle, Ellipse, Static Text, Text Field (Simple Field) Image, Subreport, Crosstab, Chart, Frame Barcode, Page and Column Breaks, Hyperlinks
- 기타
- Scriptlet : Java Class
- Style
- Internationalization : Resource Bundle
- Templates
- Plugins
JRXML file sturcture
DataSource 지정
- Database JDBC Connection을 DataSource로 등록 한다.
- "Data -> Connections/Data Sources" 메뉴를 선택 한다.
- "New" 버튼을 선택 한다.
- "Database JDBC Connection"을 선택하고 "Next >" 버튼을 선택 한다.
- Database 접속 정보를 등록하고 "Save" 버튼을 선택하여 저장한다.
- Name : DataSource 명
- JDBC Driver : "com.mysql.jdbc.Driver"
- JDBC URL : jdbc:mysql://localhost/dotprojectdb
- Server Address : localhost
- Database : dotprojectdb
- User Name : DB 사용자 아이디
- Password : DB 사용자 암호