Aspose.Cells for JasperReports includes a number of demo projects to help you get started exporting reports to Microsoft Excel document formats from your application.
The demos provided with Aspose.Cells for JasperReports are standard JasperReports demos, but they were modified to demonstrate the usage of new exporters.
To run Aspose.Cells for JasperReports demos perform the following steps:
- Download JasperReports from http://sourceforge.net/project/showfiles.php?group_id=36382&package_id=28579. Make sure to download the entire archived project with the source code and demos, not just a single JAR.
- Unpack the archived project to some location on your hard disk, for example C:\.
- Copy all demo folders from the \demo folder of aspose.cells.jasperreports.zip to <InstallDir>\jasperreports\demo\samples, where <InstallDir> is the location you have unpacked JasperReports to. This step is required because demo build scripts rely on the JasperReports’ folder structure; otherwise you will need to modify build scripts.
- Copy aspose.cells.jasperreports.jar from the \lib folder of aspose.cells.jasperreports.zip to <InstallDir>\jasperreports\lib.
- Download the ANT tool from http://ant.apache.org/bindownload.cgi. Unpack the ANT tool and set up environment variables as described in the tool’s manual.
- Change the current directory to <InstallDir>\demo\hsqldb and run the following command line:
ant runServer
- Change the current directory to one of the Aspose.Cells for JasperReports demos, for example <InstallDir>\demo\samples\charts.ac and run the following commands in the command line:
ant javac - to compile the java source files of the test application
ant compile - to compile the XML report design and produce the .jasper file
ant fill - to fill the compiled report design with data and produce the .jrprint file
- Run one or more of the following commands in the command line:
- ant xls - to produce an XLS file from the demo report using the original XLS exporter of JasperReports
- ant cells - to produce an XLS file from the demo report using the Aspose XLS exporter.
- Open one of the resulting documents to view, for example <InstallDir>\demo\samples\charts.ac\ AreaChartReport_cells.xls in Microsoft Excel or another application.