danp
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by danp
-
-
Hi,
I'd like some help if possible with rendering a barcode to an image.
I want to align a barcode and have found that its not possible using the barcode element however you can do this by rendering it to an image.
I'm currently using
new net.sf.jasperreports.components.barbecue.BarbecueRenderer(net.sourceforge.barbecue.BarcodeFactory.createCode128($F{X}))
where $F{X} = '123456789'
SQL Used:select'123456789' xfrom dualWhich produces:However I'd like to know how its possible to do the same using barcode4j rather than barbecue, and also how to actually remove the text below the barcode.
Any help would be appreciated.
Dan
Barcode to Image
in Products
Posted
Hi Thomas,
I'm trying to render the barcode as an image, in the image expression rather than using an actual barcode element from the palette.
I'm having trouble with what I actually use for the image expression.
I assume it will be something along the lines of:
new net.sf.jasperreports.components.barcode4j.........
However I'm just not sure what the full expression should be.