Aspose.BarCode  for JasperReports

Generate & Export Barcodes in JasperReports

JasperReports & JasperServer API to Generate, Display, and Export 1D, 2D, & Postal barcodes.

  Download Free Trial
  
 

Aspose.BarCode for JasperReports is a flexible JasperReports and JasperServer extension to create and display barcode labels in your applications. These barcode labels can be rendered in many popular image formats.

Advanced JasperReports to Barcode Export Features

Easy Deployment

Aspose.BarCode for JasperReports provides a special set of tools to work with barcodes in JasperReports. Using this API, developers can scan barcodes placed in existing reports or add them to new reports. This barcode library is coded purely in Java and is provided as a single JAR document and can be easily deployed on machines with JasperReports or JasperServer installed. To install the JasperReports barcode extension, simply copy the JAR document to the right folder location and start working.

Barcode Generation Live Example

The barcode generator library allows developers to easily create barcodes by specifying the type of barcode, entering the data to encode, and setting custom appearance-related properties. This includes various options, such as background and foreground color, font, size, resolution, and text captions. The API can generate both 1D and 2D barcodes, including PDF417, Data Matrix, Aztec Code, QR Code, and Micro QR Code, using the same base approach. This makes it a convenient and user-friendly tool for generating a wide range of barcode types for various applications, including JasperReports.

Code to be executed - Java


// Create an instane of the BarcodeGenerator class
BarcodeGenerator generator = new BarcodeGenerator(EncodeTypes.QR);

// Specify the code text
generator.setCodeText("");

// Specify the X-dimension 
// the smallest width of the unit of BarCode bars or spaces
generator.getParameters().getBarcode().getXDimension().setMillimeters(2);

// Set codetext position
generator.getParameters().getBarcode().getCodeTextParameters().setLocation(CodeLocation.Below);

// Generate image
generator.generateBarCodeImage();
×
Generated barcode image

Insert Barcodes into JasperReports

JasperReports allows developers to create reports using the data stored in a variety of sources, such as databases, CSV files, and XML documents. It provides a wide range of features for designing, formatting, and exporting reports, which can be easily integrated into Java applications. Some common uses for JasperReports include generating invoices, receipts, financial statements, and other types of business reports. It may be useful to insert barcodes into JasperReports to facilitate accessing and managing the information in reports. For example, barcodes can be used to quickly and accurately scan and update the information in a JasperReport, namely, by scanning a barcode on an invoice to retrieve and display the associated data. This could make it easier to track and manage information and reduce the risk of errors or discrepancies. Barcode can also serve to display specific items or records in the report.

Barcode Recognition Live Example

The barcode reader API provides a set of features for scanning, detecting, and reading 1D, 2D, and postal barcodes. With just a few lines of code, developers can easily integrate this functionality into their applications and use it to detect and decode a wide range of commonly used barcodes. The API is designed to be user-friendly and intuitive, making it easy for developers to quickly and easily add barcode scanning capabilities to their applications.

Ready to recognize Recognizing Drop a file here or click to browse *

* By uploading your files or using the service you agree with our Terms of use and Privacy Policy.

Code to be executed - Java

    
// initialize reader with image & expected type
BarCodeReader reader = new BarCodeReader(var reader = new Aspose.BarCode.BarCodeReader("<file name>", DecodeType.AllSupportedTypes);

// read code
while (reader.read()) {
    // print the code type & text
    System.out.println("Type: " + reader.getCodeType() + " Text: " + reader.getCodeText());
}

×
Barcode image