Por que lo jovenes no leen
T e c h n o l o g i e s
t o
S o l u t i o n s
JasperReports for Java Developers
Create, Design, Format, and Export Reports with the World’s Most Popular Java Reporting Library
David R. Heffelfinger
JasperReports for Java Developers
Create, Design, Format, and Export Reports with the World's Most Popular Java Reporting Library
David R. Heffelfinger
BIRMINGHAM - MUMBAI
JasperReports for Java Developers
Create, Design, Format, and Export Reports with the World's Most Popular Java Reporting Library
Copyright © 2006 Packt Publishing All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission …ver más…
Summary
Compiling a JRXML Template Programmatically Compiling a JRXML Template through ANT
29 30 33 38 40 43 45 46 46 46 47 47 47 47 48 48 48 49 49 50 50 51 51 52 54
33 36
Chapter 4: Creating Dynamic Database Reports
Database for Our Reports Generating Database Reports Embedding SQL Queries into a Report Template Database Reporting via a Datasource Database Report Methods Compared
Generating the Report Modifying a Report Query via Report Parameters
55
55 57 57 70 76
60 65
[ ii ]
Table of Contents
Summary
77 80 87 92 99 105 109 110 113 114
Chapter 5: Working with Other Datasources
Empty Datasources Map Datasources Java Objects as Datasources TableModels as Datasources XML as Datasource Custom Datasources Writing a Custom JRDataSource Implementation Using the Custom JRDataSource Implementation Summary Controlling Report-Wide Layout Properties Setting Text Properties Styles Setting a Report's Background Adding Multiple Columns to a Report A Few Things about Report Columns Grouping Report Data Report Expressions Report Variables Built-In Report Variables Stretching Text Fields to Accommodate Data Laying Out Report Elements Setting the Size and Position of a Report Element Using the Element Hiding Repeated Values Subreports Summary
Setting Text Style for Individual Report Elements Setting Styles for Text Segments
79
Chapter 6: Report Layout and Design
115
116 117 117
122 125 128 129 133 137 146 146 149 152 157