How to create, print barcodes in Eclipse BIRT reports?

Generate, print linear, 2D barcodes images in Eclipse BIRT

Generate, create linear, 2d barcode images in Eclipse BIRT reports and BIRT Report Runtime

  • BIRT Barcode generate, create linear & 2D barcodes in BIRT reports without any Java programming
  • Simple to install to latest version of BIRT 4.15.0 & easy to use
  • Support both Eclipse BIRT Report Designer and BIRT Report Runtime
  • Generating 20+ linear barcode images, like Code 39, Code 128, EAN-8, EAN-13, UPC-A, UPC-E
  • Creating 2d barcodes including QRCode, PDF417, Data Matrix
  • Completely developed in BIRT Custom Extended Report Item Framework
  • Compatible with latest barcode symbology ISO Standards
  • Base on reliable OnBarcode Barcode for Java generate library


How to create, print QR Code, 2d 1d barcodes in Eclipse BIRT reports?

  1. Download BIRT Barcode Generator plugin
  2. Install BIRT barcode generation plugin jar file into BIRT report project
  3. Start to Create










BIRT Barcode is a BIRT barcode generator library plugin which generates and prints high quality linear and 2D barcodes in Eclipse BIRT reports.


Requirements

Top




Install

Top

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.

  • 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.
  • 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"
After the change, every time you re-start the Eclipse BIRT report designer, it will reload all plugins 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.




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:
  1. Close all eclipse applications
  2. Delete the BIRT Barcode plugin jar from "\eclipse\plugins\"
  3. 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"
  4. Open Eclipse BIRT IDE, and close the IDE again.
  5. Copy the new BIRT Barcode plugin jar to "\eclipse\plugins\"
  6. 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
  7. You have updated the BIRT Barcode plugin




How to print barcodes in your BIRT reports?

Top
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 Database from "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 CUSTOMERNUMBER to the first column, "Detail Row".
    Add CUSTOMERNAME to the second column, "Detail Row".


Add barcode to table in report

  1. In Tab "Palette", drag and add OnBarcode.Barcode item to the third column "Detail Row" in report.
  2. Select the barcode item in report layout, in properties section, go to tab "General", and input the following content to "Data" textbox.
    row["CUSTOMERNUMBER"]
  3. In toolbar, click "View Report" command to view the BIRT report with barcodes printed
  4. 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

Top

Barcode Generator for BIRT - Bar Code Types Generation





































Terms of Use | Privacy Policy
Copyright © OnBarcode.com . All rights reserved.