Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Pentaho 8 Reporting for Java Developers

You're reading from  Pentaho 8 Reporting for Java Developers

Product type Book
Published in Sep 2017
Publisher Packt
ISBN-13 9781788298995
Pages 470 pages
Edition 1st Edition
Languages
Authors (2):
Jasmine Kaur Jasmine Kaur
Profile icon Jasmine Kaur
Francesco Corti Francesco Corti
Profile icon Francesco Corti
View More author details

Table of Contents (25) Chapters

Title Page
Credits
About the Author
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface
1. Introduction to Pentaho Reporting 2. Getting Started with Report Designer 3. Getting Started with Reporting SDK 4. Creating a Report with Report Designer 5. Design and Layout in Report Designer 6. Configuring JDBC and Other Data Sources 7. Including Graphics and Charts in Reports 8. Parameterization, Functions, Variables, and Formulas 9. Internationalization and Localization 10. Subreports and Cross Tabs 11. The PRPT Format and the Java API to Build It 12. Developing Using Data Sources 13. Internationalization, Subreports, and Cross Tabs Using Java 14. Building Interactive Reports 15. Using Reports in Pentaho Business Analytics Platform 16. Using Reports in Pentaho Data Integration 17. Pentaho Reporting Nightly Build and Support

Subreports using Java


As you learnt in Chapter 10, Subreports and Cross Tabs, subreports in Pentaho Reporting allow you to include fully featured reports inside a master report. In this section in particular, you will reach the same level of expertise from a Java perspective. In the following sections, you will go through the basics of Pentaho subreports, then you will move on to understand a fully working example of source code, available in the GitHub repository.

Subreports using Java

To understand the development of subreports using Java, let's describe the various components used for its definition. First is the SubReport class, used to declare and manage subreport instances in MasterReport. Differently from a regular element, a subreport is added to a report's band using the addSubReport(SubReport subReport) method.

As you saw in Chapter 10, Subreports and Cross Tabs, subreports always use a different data source for the content definition. Using Java, all the declared queries in MasterReport...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}