Demos Setup

[ ]

To run Aspose.Imaging for JasperReports demos, perform the following steps:

  1. Download JasperReports (e.g Make sure to download the entire archived project with the source code and demos, not just a single JAR.
  2. Unpack the archived project to some location on your hard disk, for example C:.
  3. Copy all demo folders from the \samples folder of to <InstallDir>\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.
  4. Copy aspose-imaging-jasperreports-xx.x.jar from the \lib folder of to <InstallDir>\lib.
  5. Prepare Ant Build Tool and Ivy Dependency Manager, see <InstallDir>\readme.txt.
  6. Modify the build.xml at <InstallDir>\demo\samples, add the aspose-imaging-jasperreports-xx.x.jar into the classpath: <path id=“project-classpath”> … <pathelement location="../../lib/aspose-imaging-jasperreports-xx.xx.jar"/> .
  7. Change the current directory to <InstallDir>\demo\hsqldb and run the following command line: ant runServer
  8. Change the current directory to one of the Aspose.Imaging for JasperReports demos, for example <InstallDir>\demo\samples\ and run the following commands in the command line: ant test - to produce report files.
  9. Open one of the resulting documents to view, for example <InstallDir>\demo\samples\\build\reports\AreaChartReport.jpg.