Aspose.BarCode for JasperReports

Using the Demos

Aspose.BarCode for JasperReports includes a few demos to help you get started rendering barcodes in JasperReports.

 

To build and run Aspose.BarCode for JasperReports demos, perform the following steps:

 

  1. 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.
  2. Unpack the archived project to some location on your hard disk, for example C:\.
  3. Copy all demo folders from the \demo folder of aspose.barcode.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.
  4. Copy aspose.barcode.jasperreports.jar from the \lib folder of aspose.barcode.jasperreports.zip to <InstallDir>\jasperreports\lib.
  5. 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.
  6. Change the current directory to one of the Aspose.BarCode for JasperReports demos, for example <InstallDir>\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

  1. Open one of the resulting pdf documents to view, for example <InstallDir>\demo\samples\bc.SimpleReport\BarcodeSimpleReport.pdf in Adobe Pdf viewer or other software.