Calling IReports From A Java ProgramEN
Calling IReports From A Java ProgramEN
This example describes how you display an iReport using a simple Java program.
Page 3 of 13
Select Import
Page 4 of 13
You must be able to see that project contains the library added
6.2.2
Page 5 of 13
Page 6 of 13
Once you finish importing, you must be able to see that your project
contains all the .jar files added as Libraries
Now copy the complete report folder (in this example the folder reports) in to
your Netbeans project folder except the .jrxml file.
Page 7 of 13
Now you must be able to see this reports folder and all the files in it once you
browse files using Files tab in NetBeans IDE.
Page 8 of 13
Select Finish
Page 9 of 13
Page 10 of 13
Page 11 of 13
Note:
In this example we added a JRViewer to a JFram. You may add JRViewer to a
JPannel or to a JformattedFrame .
You must distribute all the files in the dist folder in order to get your program
executed properly.
Page 12 of 13