wood burning stoves 2.0*
The moose likes Java in General and the fly likes Jasper Reporting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "Jasper Reporting" Watch "Jasper Reporting" New topic
Author

Jasper Reporting

malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
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

Joined: Aug 05, 2005
Posts: 3602
    
  15
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 ?


Joanne
malik ge
Ranch Hand

Joined: May 13, 2011
Posts: 69
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

Joined: Aug 05, 2005
Posts: 3602
    
  15
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.
 
GeeCON Prague 2014
 
subject: Jasper Reporting