Wednesday, April 18, 2012

Calling Java Methods From Jasper Reports


To call java methods from jasper reports. Just Follow the following steps

Step1:

create a java class with a static method which return something i.e either String or Integer.. etc

Step2:

Create a jar file by the following command 
jar - cvf file.jar packagename

Step3:

set it as class path as 
Tools > Options > ClassPath > Add Jar > Ok

Step4: 

Create a Static field. Edit its Expression by EditExpression to  "new packagename.classname().methodname(parameter) "
Step5:
Place this static field wherever you want

No comments:

Hide Query By Example of PanelCollection on page load

Hi All, If there is a table with filterable is true. If you want to display QueryByExample then surround this table with panelCollection....