Using Demos
Contents
[
Hide
]
Aspose.BarCode for JasperReports includes a few demos to help you get started rendering barcodes in JasperReports.
How to Use Demos
To build and run Aspose.BarCode 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 a location on your hard disk, for example C:.
- Copy all demo folders from the \demo folder of the aspose.barcode.jasperreports.zip file to
\jasperreports\demo\samples , whereis the location you have unpacked JasperReports to. This step is required because the demo build scripts rely on JasperReports’ folder structure; otherwise you need to modify the build scripts. - Copy aspose.barcode.jasperreports.jar from the \lib folder of the aspose.barcode.jasperreports.zip file to
\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 one of the Aspose.BarCode for JasperReports demos, for example
\demo\samples\bc.SimpleReport and run the following commands in the command line:- ant build – to compile the Java source files and produce the .jasper file.
- ant run –- export the report in PDF format.
- Open one of the resulting PDF documents to view it in Adobe Pdf viewer or other software.