JasperReports for Java Developers
  FREE ONLINE EDITION: Read full chapters online, download free samples from the book and more...
  Index > Chapter 5
Book Contents

Preface
Chapter 1: An Overview of JasperReports
Chapter 2: Adding Reporting Capabilities to Java Applications
Chapter 3: Creating Your First Report
Chapter 4: Creating Dynamic Database Reports
Chapter 5: Working with Other Datasources
Chapter 6: Report Layout and Design
Chapter 7: Adding Charts and Graphics to Reports
Chapter 8: Other JasperReports Features
Chapter 9: Exporting to Other Formats
Chapter 10: Graphical Report Design with iReport
Chapter 11: Integrating JasperReports with other Frameworks

Index

Free Content
Download Sample Chapter 4: Creating Dynamic Database Reports
[1 MB PDF]

Chapter 5: Working with Other Datasources

In the previous chapter, we mentioned that JasperReports allows us to use not only databases, but also many other sources of data to generate reports. In this chapter, we will cover how to use datasources, other than databases, to create
our reports.Since creating web-based reports is by far the most common use
of JasperReports, most examples in this chapter will use the technique, described in Chapter 3, to stream a PDF report to a web browser via the JasperFillManager.fillReportToStream() method.

  • 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
 

 

Paperback 344 pages
Released: August 2006
ISBN: 1904811906

 

eBook Version Also Available
Buy the book & eBook together and get 80% off the eBook

 

     

 




View the book details
on PacktPub.com

 

 

 

  This website is owned and maintained by Packt Publishing Ltd, 2006. All rights reserved. Terms and Conditions