Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dynamic jasper report

 
sudeepjee srivastava
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI All I wanted to add dynamically the number of columns in my report, means the number of columns in my report would increase based on the search criterion selected by the user.
Note -: I wanted to do this in a single jrxml file
any solutions with a small code snippet would be welcomed.
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi sudeepjee,

kindly look at the following link:

http://dynamicjasper.sourceforge.net/

It's all dynamic jasper report , you can add columns at runtime.
if you need any example please let me know.
recently i have developed one sample app with dynamicJasper2.0.9

Regards,
Nils- Not anather java developer
 
arehman habib
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to see how you implemented it
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sivasundaram,
Send me your mail id.

-
Nils
 
Harika emm
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I am working on jasper reports which has to be generated dynamically
here in my project
user will have a page where he can select the department, starting data and end date to view the report in pdf
so my report generation is dynamic so please help me in this with an example code

thanku..
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry for late reply.
Please send me your mail id through private massage.

--
Nils
Not Another Java Developer
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

Please remember to UseTheForumNotEmail!
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
It’s now all easy to understand the DynamicJasper api and I am happy that people are loving it like me. As author mention in the site (DynamicJasper) that "DynamicJasper (DJ) is an open source library that hides the complexity of Jasper Reports, it helps developers to save time when designing simple/medium complexity reports generating the layout of the report elements automatically"
And it’s really working!!!

From last 6 to 7 months I am working on Dynamic Jasper Reports and getting more involved in the project.

In parallel, I was working on sample java app through which we can preview the design view and output report. It is base on DynamicJasper-3.0.2-test-project provided by Dj.

As it is a more than one file I can not post it directly.

--
Nils- Not another java developer
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For your convinience , here is my main class.....
Check out imported packages and lib

Library file required:
commons-beanutils-1.7.0.jar
commons-codec-1.3.jar
commons-collections-3.1.jar
commons-digester-1.7.jar
commons-discovery-0.2.jar
commons-el-1.0.jar
commons-fileupload-1.0.jar
commons-javaflow-20060411.jar
commons-lang-2.1.jar
commons-logging-1.0.4.jar
commons-validator-1.2.0.jar
DynamicJasper-3.0.2.jar
el-api.jar
el-ri.jar
iText-2.1.2u.jar
jasperreports-3.0.0-applet.jar
jasperreports-3.0.0-javaflow.jar
jasperreports-3.0.0.jar
jdt-compiler-3.1.1.jar
jfreechart-1.0.0.jar
junit.jar
log4j-1.2.15.jar
mysql-connector-java-5.0.8-bin.jar
poi-3.0.1-FINAL-20070705.jar

Main Class:




This class represent group test from DynamicJasper-3.0.2-test-project provided by Dj.
If you want to test other report then just replace buildReport() method corresponding to related deign object.

Feel free to ask any queries related to this code.

--
Nils- Not another java developer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic