O'Reilly logo

iReport 3.7 by Shamsuddin Ahammad

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating the iReport viewer class

We will now create a class that will be used as the viewer for reports produced by iReport. We will create the viewer as an internal frame so that this can be added on a JDesktopPane within a Java swing frame (javax.swing.JFrame).

The viewer program will be created based on the JasperReport API. Special handling is required to use JasperReport API in your NetBeans project.

Adding JasperReports API in the NetBeans project

The API for calling report is located generally at the location C:\Program Files\Jaspersoft\iReport-nb-3.7.0\ireport\modules and C:\Program Files\Jaspersoft\iReport-nb-3.7.0\ireport\modules\ext, or the location where you installed the iReport. Before following the steps listed, create a folder named ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required