Install Java Barcode Generator
- Under demo package, copy barcode folder and its contents to your tomcat.
- Restart tomcat.
- To test it. Open your web browser, and navigate to http://YourDomain:Port/barcode/barcode?DATA=0123456789&TYPE=CODE128
How to print barcodes in your BIRT reports?
-
Create a new empty report in your BIRT Report project
-
In BIRT buildin demo dataset, select "CUSTOMERNUMBER", and "CUSTOMERNAME" from table "CUSTOMERS".
-
Open View "Palette", add report item "Image" to a new column.
-
Double click the image report item you added, select "URI" option. Then select "JavaScript Syntax" as Enter URI data format.
-
In "Expression Builder" window, input "http://YourDomain:Port/barcode/barcode?TYPE=CODE128&DATA="+row["CUSTOMERNUMBER"], then click "OK" button.
Or you can use OnBarcode Online Barcode Generator Hosting Service, and you need input "http://azuredemo.onbarcode.com/linear.aspx?TYPE=7&DATA="+row["CUSTOMERNUMBER"]
-
Click "Insert" button
-
Preview the report. All customer numbers are encoded into barcode Code 128.
Java Reporting Barcode Generation Guide
Jasper Reports Barcode Generation
|
iReport Barcode Generation
|
Eclipse BIRT Barcode Generation
