Reader small image

You're reading from  Pentaho 8 Reporting for Java Developers

Product typeBook
Published inSep 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781788298995
Edition1st Edition
Languages
Tools
Right arrow
Authors (2):
Francesco Corti
Francesco Corti
author image
Francesco Corti

Francesco Corti is an enthusiastic consultant in software solutions and loves working in developer, sales, and customers teams. Proud of the role of a software engineer, he is often involved in pre-sales presentations, public speaking, and IT courses. Developing software, designing architectures, and defining solutions in ECM/BPM and BI are his favorite areas of interest. He has completed dozens of projects, from very small ones to more complex ones, in almost 20 years of experience. A product evangelist at Alfresco, Francesco represents the famous open source ECM in the developer community. In addition to helping developers adopt Alfresco technologies, he often helps Alfresco to improve the developer experience through talks, articles, blogging, user demonstrations, recorded demonstrations, or the creation of sample projects. He is the inventor and principal developer of Alflytics (previously named Alfresco Audit Analytics and Reporting), the main business intelligence solution over Alfresco ECM, entirely based on the Pentaho suite. He authored the Pentaho Reporting video course with more than 40 videos and courses on the Pentaho Reporting Designer and SDK. Francesco has specialty and principal experiences in enterprise content management solutions with Alfresco ECM and Hyland OnBase (he is an OnBase certified installer); business process management solutions with Activiti, JBPM, and Hyland OnBase; data capture solutions with Ephesoft, Hyland OnBase, and custom software; record management solutions with O'Neil software and custom software (using Alfresco ECM and Hyland OnBase); and portal and collaboration with Liferay and MS SharePoint.
Read more about Francesco Corti

View More author details
Right arrow

Chapter 3. Getting Started with Reporting SDK

After the introduction of Pentaho Reporting and the development of a first report using the Report Design Wizard, in this chapter, you are going to leave the world of what-you-see-is-what-you-get report building and enter the Java land of Pentaho Reporting SDK. At the end of this initial discovery, you will learn how to create a web application in Java using Pentaho Reporting, with the goal to preview the Pentaho report you developed in previous chapter.

You will begin by downloading and setting up the Pentaho Reporting SDK. From there, you will understand more about the anatomy of the SDK package, through some initial details of the directory structure and the various libraries and samples included with it. To make the discovery more practical, you will see how to include the samples in an Eclipse project.

After the introduction of the Pentaho Reporting SDK, the hands-on session will be dedicated to a different topic: creating a web application...

Obtaining the Pentaho Reporting SDK


In Chapter 2, Getting Started with Report Designer, you saw where to find all the Pentaho Reporting tools: at the SourceForge website (https://sourceforge.net/projects/pentaho), particularly in the Report Designer folder of the Files repository. In the Report Designer folder, you find a ZIP file called pre-classic-sdk-*.zip, containing the whole Pentaho Reporting SDK. As you can imagine, download the ZIP file into your laptop and that's all. As introduced for Report Designer, the distribution packages are always free for downloading and no fee or costs should be required.

Once you have downloaded the distribution package of Pentaho Reporting SDK, create a directory on your machine and unzip the contents inside. This is all you have to do to get Pentaho Reporting SDK available in your environment. Before moving forward, note the PDF file called embedding_pentaho_reporting_engine in the documentation folder. This file is extremely useful and we highly recommend...

Creating a web application using Pentaho Reporting and Maven


In this section, you'll learn how to create a web application from scratch, using the Pentaho Reporting Engine. This example is useful if you also want to understand how to embed the Pentaho Reporting Engine into an existing web application. In this example, in particular, you will see how to create a Java web application showing the Pentaho report you developed in Chapter 2, Getting Started with Report Designer. As you probably remember, we saw how to create a Pentaho report using the Report Design Wizard and we named it my_first_report

Differently from the examples introduced in the Pentaho Reporting SDK, in this book we are going to use Apache Maven, the most used software project management and comprehension tool for Java.

To better describe the tasks and give you the opportunity to test the correct results, we are going to split the project into a few subtasks: one paragraph for each task, with source code and screenshots...

Summary


In this chapter, you have walked through a complete example with step-by-step instructions on how to embed Pentaho Reporting in a Java J2EE Application. In the first part of the chapter, you downloaded, installed, and studied the official Pentaho Reporting SDK, discovering its structure, the samples, and the provided guide.

In the second part of the chapter, you developed a brand new web application in Java, using Apache Maven and including the Pentaho Report Engine in the project. To make the example more practical, you saw how to manage the Pentaho report developed in the previous chapter from the Java code. The goal has been to preview the Pentaho report in PDF format, using your browser.

Now that you have read this chapter, you should be confident with the basics about Pentaho Reporting SDK and how to build a Java application consuming Pentaho reports. In the next chapter, you will start a deep learning of Pentaho Report Designer, understanding the funding principles and developing...

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Pentaho 8 Reporting for Java Developers
Published in: Sep 2017Publisher: PacktISBN-13: 9781788298995
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.
undefined
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

Authors (2)

author image
Francesco Corti

Francesco Corti is an enthusiastic consultant in software solutions and loves working in developer, sales, and customers teams. Proud of the role of a software engineer, he is often involved in pre-sales presentations, public speaking, and IT courses. Developing software, designing architectures, and defining solutions in ECM/BPM and BI are his favorite areas of interest. He has completed dozens of projects, from very small ones to more complex ones, in almost 20 years of experience. A product evangelist at Alfresco, Francesco represents the famous open source ECM in the developer community. In addition to helping developers adopt Alfresco technologies, he often helps Alfresco to improve the developer experience through talks, articles, blogging, user demonstrations, recorded demonstrations, or the creation of sample projects. He is the inventor and principal developer of Alflytics (previously named Alfresco Audit Analytics and Reporting), the main business intelligence solution over Alfresco ECM, entirely based on the Pentaho suite. He authored the Pentaho Reporting video course with more than 40 videos and courses on the Pentaho Reporting Designer and SDK. Francesco has specialty and principal experiences in enterprise content management solutions with Alfresco ECM and Hyland OnBase (he is an OnBase certified installer); business process management solutions with Activiti, JBPM, and Hyland OnBase; data capture solutions with Ephesoft, Hyland OnBase, and custom software; record management solutions with O'Neil software and custom software (using Alfresco ECM and Hyland OnBase); and portal and collaboration with Liferay and MS SharePoint.
Read more about Francesco Corti