Search code examples
javajasper-reportsbarbecue

barcode generated with jasperreport can't be scanned


I'm working on a javafx project where i need to generate a label product with a barecode (code128). I used jasperreport with barbecue library for this purpose. The problem is that the barcode generated can't be scanned with my barcode scanner (metrologic MS9535).

Here is a sample of a label i'm generating: Label sample

Please help.


Solution

  • I can read your barcode (with my smartphone) so, it seems to be a valid barcode, there could be many reasons why in your report the barcode is not readable.

    Resolution

    Your image is too small and the scanner can't read the barcode

    Placement

    Your image is placed to near to borders or other lines that make the barcode unreadable.

    Configuration

    Your scanner is not configured properly to read such barcode.

    Try to print just the image you put as example (make it big enough at least 6 inches or 15cm) and see if you can read it.

    Then maybe make it a bit taller, not everybody is sniper.