iReport Data Matrix Generator Plugin Tutorial
Generate, create 2d barcode Data Matrix images in iReport reports
Download iReport Barcode Generator Free Evaluation Package
Purchase This Mature Barcode SDK Now
I was looking for an iReport barcoding tool for our project! And OnBarcode provided exactly what we needed!
- Adam Landon, UK

Data Matrix for iReport plugin generate, create Data Matrix barcode in iReport Jasper Reports

  • Easy to generate Data Matrix barcodes in iReport reports
  • Create a single Data Matrix barcode or bulk bacodes in iReport with data from database
  • Easy to install with no registration key or action code required
  • Print, create high-quality Data Matrix barcodes in Png, Gif, Jpeg image formats
  • Completely developed in NETBeans iReport Custom Extended Report Item framework
  • Flexible settings to adjust Data Matrix barcode parameters
  • Professional iReport Data Matrix barcode generation plugin using Java Barcode Generator library

iReport Barcode Data Matrix Generator Introduction
Top
iReport Barcode is a NETBeans iReport Custom Extended Report Item which helps you easily generate and print high quality 1D (linear) and 2D (matrix) barcodes in your iReport reports.

Barcode Data Matrix Introduction

Data Matrix code is a two-dimensional matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. A Data Matrix symbol can store up to 2,335 alphanumeric characters.

iReport Data Matrix Generator - Valid Data Scope

  • all 128 characters of ASCII, including A-Z, a-z, 0-9, etc
  • values 128-255 in accordance with ISO 8859-1. There are referred to as extended ASCII.

Data Matrix Generators

How to print Data Matrix barcode in iReport?
Top
Users can follow the guide to print Data Matrix barcodes in iReport. More details view here: how to generate and print barcodes in iReport reprts.

Another method to stream Data Matrix barcodes in iReport using Java Barcode Generator buildin Servlet web application.
  1. Download the evaluation package and unzip
  2. Create a new report in iReport, and add barcode.jar to report classpath from the downloaded trial package
  3. Drag an image item in Palette to report
  4. Click "Cancel" button, in "Select an image file" window
  5. Right click on the image and edit its "Properties", and set property "Expression Class" to "net.sf.jasperreports.engine.JRRenderable";
  6. To input Data Matrix barcode data manually, set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(
    com.onbarcode.barcode.jasper.BarcodeGenerator.draw(100, "12345", "", "X=2&Y=2"))
    "
  7. To print Data Matrix with data from database, please set property "Image Expression" to "new com.onbarcode.barcode.jasper.JasperRenderer(com.onbarcode.barcode.jasper.BarcodeGenerator.draw(100, $F{data field} + "", "", "X=2&Y=2"))";

    BarcodeGenerator.draw method accepts 4 parameters:
    the second is the barcode data to encode, in String,
    the last is the barcode settings String. More details about barcode settings string, please check the Data Matrix property table below
iReport Barcode Data Matrix Generator - Property Settings
Top
Category Properties Value Comments
Basic Property: Data Type: expression
Default: ""
  • If you encode the barcode data text directly, the text string should be around by " " ", such as "12345"

  • If you encode the barcode data from dataset, input the expression, such as row["CUSTOMERNUMBER"]
Barcode value to encode

Data Matrix Valid Data Char Set:

  • ASCII values 0 - 127 in accordance with the US national version of ISO/IEC 646

    NOTE: This version consists of the G0 set of ISO/IEC 646 and the C0 set of ISO/IEC 6429 with values 28 - 31 modified to FS, GS, RS and US respectively.
  • ASCII values 128 - 255 in accordance with ISO 8859-1. These are referred to as extended ASCII.

 
Data Matrix
Special
Property: processTilde
URL: PROCESS-TILDE
Type: bool
Default: true
Set the processTilde property to true, if you want use the tilde character "~" to specify special characters in the input data. Default value is true.

  • 1-byte character: ~0dd/~1dd/~2dd (character value from 000 ~ 255); ASCII character '~' is presented by ~126
    Strings from "~256" to "~299" are unused
  • 2-byte character (Unicode): ~6ddddd (character value from 00000 ~ 65535)
    Strings from "~665536" to "~699999" are unused
  • for GS1 AI Code:
    ~ai2: AI code with 2 digits
    ~ai3: AI code with 3 digits
    ~ai4: AI code with 4 digits
    ~ai5: AI code with 5 digits
    ~ai6: AI code with 6 digits
    ~ai7: AI code with 7 digits
  • ECI: ~7dddddd (valid value of dddddd from 000000 to 999999)
  • ~rp: Reader Programming (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~rpABCD1234".
  • ~m5: 05 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m5ABCD1234".
  • ~m6: 06 Macro (for ASCII mode and Auto mode only)
    This should be located at the beginning of the encoding data, e.g. data = "~m6ABCD1234".
Property: Data Matrix Data Mode Type: int

Default: AUTO
Data Matrix data encoding mode.

Valid values are:
  • AUTO (0): Barcode library will decide the best data mode for you. This is the default encoding format by Barcode Library.
  • ASCII (1): it is used to encode data that mainly contains ASCII characters (0-127).
  • C40 (2): it is used to encode data that mainly contains numeric and upper case characters.
  • TEXT (3): it is used to encode data that mainly contains numeric and lower case characters.
  • X12 (4):it is used to encode the standard ANSI X12 electronic data interchange characters.
  • EDIFACT (5): it is used to encode 63 ASCII values (values from 32 to 94) plus an Unlatch character (binary 011111).
  • BASE256 (6): it is used to encode 8 bit values.
Property: Data Matrix Format Mode Type: int

Default: 10X10
Specifies the Data Matrix Format to use on that symbology. Valid values see options in the list;
Property: Data Matrix FNC1 Mode Type: int

Default: NONE
To encode GS1 compatible Data Matrix barcode, you need set fnc1Mode value to "ENABLE".
Property: 2D Barcode Structured Append Type: boolean
Default: false
Set Structured Append property to true, then Structured Append is enabled.
Property: 2D Barcode Symbol Count Type: int
Default: 0
Set Symbol Count property to the number of total symbols which make the sequence.
Property: 2D Barcode Symbol Index Type: int
Default: 0
Set Symbol Index property to the position of current symbol in the secuence (Start with 0).
Property: 2D Barcode File Id Type: int
Default: 0
Set File Id property to be identified to the same file.
 
Barcode
Size
Related
Property: Unit of Measure Type: int
Default: 0 (pixel)
Unit of meature for all size related settings in the library.
Valid values: 0: pixel; 1: inch; 2: cm.
Property: X Type: float
Default: 1
Width of barcode bar module (narrow bar), default is 1 pixel
Property: Left Margin Type: float
Default: 0
Barcode image left margin size.
Property: Right Margin Type: float
Default: 0
Barcode image right margin size.
Property: Top Margin Type: float
Default: 0
Barcode image top margin size.
Property: Bottom Type: float
Default: 0
Barcode image bottom margin size.
Property: Resolution (in dpi) Type: int
Default: 72
Barcode image resolution in DPI (Dots per inch).
Property: Rotate Type: int
Default: 0 (rotate angle in 0 degree)
Valid values:

  • 0 (rotate angle in 0 degree)
  • 90 (rotate angle in 90 degree)
  • 180 (rotate angle in 180 degree)
  • 270 (rotate angle in 270 degree)
iReport Barcode Generator Supporting BarCode Types
Top
Barcode for iReport - Bar Code Types Generation
OnBarcode is a market-leading provider of barcode imaging generator, reader controls and components for ASP.NET, Windows Forms, WPF, as well Java, Android, iOS (iPhone, iPad) across all major enterprise development platforms. We provides comprehensive tutorials and how-tos for various linear, 2d barcode information, such as C# in ASP.NET, C# .NET, C# Barcode Encoding, C# Barcode Image, VB.NET in ASP.NET, VB.NET Winforms, VB.NET Barcode Encoding, Paint QR Bar Code in Java, Print QR Code in Software. OnBarcode barcode products are supported by RasterEdge ASP.NET Document Viewer, which supports ASP.NET PDF Viewer, ASP.NET MVC Document Viewer, ASP.NET PDF Editor, MVC PDF Viewer. And provide high quality C# Convert PDF to Tiff, C# Convert PDF to Word, C# Convert PDF to HTML, C# Convert PDF to Jpeg images, and their easy and simple documents, like C# PDF SDK, C# extract text from PDF, C# Compress PDF, Print PDF in C# and C# extract image from PDF.
Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.