i-net Clear Reports

Bar Codes

There are 2 solutions how to use bar codes in your reports.

1. Use a bar code Java Bean

Using Java Beans is the recommended solution for using bar codes. If you use a Java Bean then the bar code is written as a vector or pixel image. This solution is valid only for export formats supporting images. The overhead is very small for such images. On PDF, the files are smaller than when using embedded fonts. For example, we have tested with the open source JBarcodeBean (LGPL).

Installing the JBarcodeBean in the Designer

  • Download the latest version of JBarcodeBean from sourceforge.net.
  • Extract the zip file and copy the library file JBarcodeBean.jar into the i-net Designer directory.
  • Add the library file JBarcodeBean.jar to the Designer.
  • Add the JavaBean “jbarcodebean.JBarcodeBean” (case sensitive)

Sample Report

You can find a sample report using the JBarcodeBean in the feature sample reports on our website.

2. Use Barcode Fonts

Using barcode fonts is very easy at design time but there are some prerequisites at runtime:

  • Prerequisite for the Java viewer
    • The font need to be embedded
      or
    • installed on the client.
    • Value of the Property “useNativeFonts” need to be true.
  • Prerequisite for PDF and PS format
    • The font need to be embedded in the PDF file.
    • Value of the Property “useNativeFonts” need to be true.
  • Prerequisite for other export formats
    • The font need to be installed on the viewing client computer.
       

i-net software strives to provide accurate product documentation. Please give us your feedback using the form below.
NOTE: This form is for documentation feedback only. For technical assistance, please send an email to clearreports@inetsoftware.de.

 

© Copyright 1996 - 2012, i-net software; All Rights Reserved.