File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jasper Reporting

 
malik ge
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am learning Java for about couple of months and I ma totally new to Jasper reports.
I came across this article about Java Reporting With Jasper Reports
This article is very old, and I am having difficulties understanding this topic.

I don't understand how to write the code explained in that article

I am using NetBeans and I have included all the jar files
jasperreports-2.0.4.jar
commons-digester-1.7.jar
commons-collections-2.1.jar (commons-collections.jar)
commons-logging-1.0.2.jar
commons-beanutils.jar
iText-2.0.7.jar (used infor PDF exporting)


 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There's quite a lot of code in that article. Nobody's going to explain it to you line by line. What specific problems are you having ?
 
malik ge
Ranch Hand
Posts: 69
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have manage to call the static report from Java program,

but when I call the reports in which I have used mysql to generate the report I get the following error:

Nov 24, 2011 4:32:50 PM org.apache.commons.digester.Digester error
SEVERE: Parse Error at line 2 column 408: Document root element "jasperReport", must match DOCTYPE root "null".
 
Joanne Neal
Rancher
Pie
Posts: 3742
16
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
malik ge wrote:Document root element "jasperReport", must match DOCTYPE root "null".

Googling that error messages gives a number of hits. Take a look through those and see if any of the responses help.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic