#42 Text under barcode present on screen but not present on paper

v1.0 (example)


On a report created with iReports, I have a barcode (barcode4j) component.
When I preview the report the text under the barcode is present but not present on paper. If I save as PDF then print on paper, then the text under the barcode is present.
I tried with a new iReport project that containt only a barcode...same result.

Same result with my java application, when I preview with JasperView the text under the barcode is present but not present on paper.

If I uninstall java7 and install java6. Then the text under the barcode is present on paper.

This bug has been reported by another user in Jasperreports community, but I would ask if it can be a problem of Barcode4J and java 7.

Thanks in advance


  • Jeremias Märki

    Jeremias Märki - 2013-05-06

    I'm not aware of incompatibilities with Java 7. OTOH, I don't know how iReports integrated Barcode4J. I don't know whether it is using Java2D/AWT or SVG or if they are using a special CanvasProvider. If you want to look at the code that is responsible for text production with Java2D, check out: http://barcode4j.cvs.sourceforge.net/viewvc/barcode4j/barcode4j/src/java/org/krysalis/barcode4j/output/java2d/Java2DCanvasProvider.java?revision=1.7&view=markup

    I also don't know how the printing process is working. If iReports prints reports through JPS (Java Printing System), there could be incompatibilities between Java and the printer driver where Barcode4J has no influence at all.

    So I'm unsure how to help you. What you could try is to write your own CanvasProvider (or alter the existing one). The current code is relatively complex due to the various requirements for it. Maybe it is possible to create a simpler implementation with fewer feature making fewer problems.

    Good luck!

  • Jordi Moltó

    Jordi Moltó - 2013-05-07

    Thanks for your answer, it is probably a problem with ireport.


Log in to post a comment.