Requirements
- com.onbarcode.barcode.birt_9.7.0.jar (Download free evaluation package of BIRT Barcode)
- BIRT 2.5.2 or later version (Get Eclipse BIRT)
- JDK 1.5.0_22 or later version
Install
Install Barcode Jar for BIRT latest version
The following Barcode BIRT plugin install guide is for BIRT latest version, 4.21.0 to 4.10.
After restart the Eclipse BIRT report designer IDE, you will find the installed barcode item in BIRT report designer Palette > Report Items > OnBarcode.Barcode
We recommend you to remove all temp files in folder configuration, keep only the following files during installation
"\configuration\org.eclipse.equinox.simpleconfigurator\* (all files in the folder)"
"\configuration\org.eclipse.update\platform.xml"
"\configuration\config.ini"
- Copy com.onbarcode.barcode.birt_9.7.0.jar to your Eclipse plugins directory "\eclipse\plugins\"
- Add the following content to the end of the file "{Eclipse home}\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info"
com.onbarcode.barcode.birt,9.7.0,plugins/com.onbarcode.barcode.birt_9.7.0.jar,4,false
After restart the Eclipse BIRT report designer IDE, you will find the installed barcode item in BIRT report designer Palette > Report Items > OnBarcode.Barcode
We recommend you to remove all temp files in folder configuration, keep only the following files during installation
"\configuration\org.eclipse.equinox.simpleconfigurator\* (all files in the folder)"
"\configuration\org.eclipse.update\platform.xml"
"\configuration\config.ini"
Cannot find the barcode item in Palette
If you cannot find the "OnBarcode.Barcode" report item in BIRT Palette, the Eclipse may not load the barcode plugin automatically.
To improve the Eclipse BIRT loading speed, you can restore the file "bundles.info" to the previous config. "org.eclipse.equinox.p2.reconciler.dropins,...,false.
- Open config file "bundles.info" in {Eclipse home}\configuration\org.eclipse.equinox.simpleconfigurator\
- Find and change "org.eclipse.equinox.p2.reconciler.dropins,...,false" To "org.eclipse.equinox.p2.reconciler.dropins,...,true"
To improve the Eclipse BIRT loading speed, you can restore the file "bundles.info" to the previous config. "org.eclipse.equinox.p2.reconciler.dropins,...,false.
Install Jar for BIRT 4.9 and previous versions
Install BIRT Barcode Generator plugin is an easy and simple job:
- Copy com.onbarcode.barcode.birt_9.7.0.jar to your Eclipse plugins directory "\eclipse\plugins\"
- You have installed the BIRT Barcode plugin
Update the BIRT Barcode on Report Designer
Sometimes you might need to reinstall the BIRT Barcode plugin or upgrade the trial version of jar to licensed one, and here's how:
- Close all eclipse applications
- Delete the BIRT Barcode plugin jar from "\eclipse\plugins\"
- Remove config content
com.onbarcode.barcode.birt,9.7.0,plugins/com.onbarcode.barcode.birt_9.7.0.jar,4,false
from file "{Eclipse home}\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info" - Open Eclipse BIRT IDE, and close the IDE again.
- Copy the new BIRT Barcode plugin jar to "\eclipse\plugins\"
- Add the following content to the end of the file
"{Eclipse home}\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info"
com.onbarcode.barcode.birt,9.7.0,plugins/com.onbarcode.barcode.birt_9.7.0.jar,4,false - You have updated the BIRT Barcode plugin
How to print barcodes in your BIRT reports?
Here we will build a new BIRT report project and create a simple BIRT report with Code 128 barcodes printed.
Create a new BIRT report project
- Open "BIRT Report Designer All-In-One", go to File - New - Project...
- In the "New Project" window, choose General -> Project, click button "Next >"
- Name the new project "OnBarcode", click button "Finish".
Add a new report
- Add a new BIRT report in the project
- Go to menu File - New - Report
- In the "New Report" windows, select the project "OnBarcode", click button "Finish"
Print the first barcode in report
- In report designer "Palette", drag and add the item "OnBarcode.Barcode" to the report layout.
- Run the "View Report" command from toolbar.
-
You will find a Code 128 barcode printed in the report in the open web browser.
Print barcodes in report with data from database
Add data source to the report
- In report design interface, go to tab "Data Explorer".
- Right click "Data Sources", select "New Data Source".
- In "New Data Source" window, choose
Classic Models Inc. Sample Databasefrom "Create from a data source type in the following list". Click button "Next >" - Click button "Finish"
Add data set to the report
- Right click "Data Sets", select "New Data Set"
- In "New Data Set" window, click button "Next >"
- In the left "Data Source" list, choose
CLASSICMODELS>CUSTOMER. Add "CUSTOMERNUMBER" and "CUSTOMERNAME" to the query.
And you will get the following SQL query in the "Query Text" textbox
select CLASSICMODELS.CUSTOMERS.CUSTOMERNUMBER, CLASSICMODELS.CUSTOMERS.CUSTOMERNAME from CLASSICMODELS.CUSTOMERS
- Click button "Finish"
- In "Edit Data Set - Data Set" dialog, click button "OK"
Add data to table in report
- In Palette, add a Table item to the report. In the "Insert Table" dialog, click button "OK"
-
In Tab "Data Explorer", add
CUSTOMERNUMBERto the first column, "Detail Row".
AddCUSTOMERNAMEto the second column, "Detail Row".
Add barcode to table in report
- In Tab "Palette", drag and add
OnBarcode.Barcodeitem to the third column "Detail Row" in report. - Select the barcode item in report layout, in properties section, go to tab "General", and input the following content to "Data" textbox.
row["CUSTOMERNUMBER"] - In toolbar, click "View Report" command to view the BIRT report with barcodes printed
-
In the popup web browser, you will view the list of Code 128 barcodes printed on the third column in BIRT report.
BIRT Barcode Generator Supporting Barcode Symbology Types
Barcode Generator for BIRT - Bar Code Types Generation
- BIRT 1D / Linear Barcodes:
- BIRT 2D / Matrix Barcodes: Data Matrix, PDF-417, QR Codes
