• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

dynamic jasper report

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i want to see how you implemented it
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sivasundaram,
Send me your mail id.

-
Nils
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for late reply.
Please send me your mail id through private massage.

--
Nils
Not Another Java Developer
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

Please remember to UseTheForumNotEmail!
 
Nilesh Padmawar
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic