Jump to content
Changes to the Jaspersoft community edition download ×

danp

Recommended Posts

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' x
from dual
 
Which produces:
 
barcode3.jpg.1000fc6e50dde121f9a08f9c57db9962.jpg

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

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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.

 

 

 

Link to comment
Share on other sites

  • 5 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...