hi Susanthampy
try this
JasperReports is a very popular open source report generating tool, written in pure Java and can be used to deliver dynamic content to the screen or printer. It can create reports in multiple formats, such as HTML file, PDF file, Excel file, CSV file , XML file, etc. It is capable of producing a report using data from a database, parameters, variables expressions and groups, etc. It also includes features, such as chart, crosstab, custom data sources, scriptlet, and subreport. Unfortunately, it is not clearly documented. I had a hard time creating a simple report. This tutorial demonstrates how to get started with JasperReports.
To generate a report using JasperReports you will need following things:
· Sun JDK 1.4 or Later version
· jasperreports-{version}.jar
· commons-beanutils-{version}.jar
· commons-collections-{version}.jar
· commons-digester-{version}.jar
· commons-logging-{version}.jar
· xercesImpl.jar-for parsing XML
· itext-{version}.jar-For creating PDF formatted report
· poi-{version}.jar-For creating XLS formatted report
· If you want to access database, you must have to provide a JDBC driver.
· Acrobat Reader
These are the minimum requirements for creating a report. You might have to add more JAR files for using other features of JasperReports. For example, to create a chart you have to add jfreechart-{version}.jar file. All these jar files are already included in the lib/dist directory of JasperReports, so you do not have to download these.
1. Install JDK 1.4 or higher version.
2. Download jasperreports-1.3.0-project. zip or any other version of JasperReports from http://jasperreports.sourceforge.net. Then unzip it where you want.
3. Download and install Adobe Acrobat Reader.
4. Include the path for all the required jar files in the CLASSPATH variable.
This tutorial demonstrated how to generate a report dynamically from database data using JasperReports into PDF and XLS format. Similar techniques can be used to export report into HTML, RTF, CSV file, etc.
N. MOHAMED ZACKKARIAH
Susanthampy, if this helps please login to Mark As Answer. | Alert Moderator