Jump to content
We've recently updated our Privacy Statement, available here ×

how to create QRcode into ireport ?


michaelremy

Recommended Posts

hi!

 

i'm using ireport 4.1.1.

 

i wish to insert a qrcode image. how can i do that ? ireport barecode integrated component does not have this kind of 2d barecode so i'm  very sad.

i also find a tutorial for other barcodes type :

http://www.barcodelib.com/java_barcode/barcode_symbologies/barcode_ireport.html

 

but i can find the right string to put for qrcode in place of this :

new com.barcodelib.barcode.BarcodeJasperRenderer(com.barcodelib.barcode.BarcodeJasperFactory.createLinear(22, "my string of qrcode"))";

 

i also find a strange example there but i can't able to use it :

http://www.onbarcode.com/tutorial/BarcodeJasperFactory.txt

 

any help please ?

 

by advance, thanks.

 

Best regards,

 

Mike

Link to comment
Share on other sites

  • Replies 6
  • Created
  • Last Reply

Top Posters In This Topic

 

The solution proposed here is the best one:

http://www.barcodelib.com/java_barcode/barcode_symbologies/barcode_ireport.html

the fact that JasperReports does not provide a QR barcode, does not mean that you cannot do:

a) Implement a JRRenderable (like in the above sample) to create a graphic object and use it with an Image Element

b) Implement a custom component a plug it inside JR (cleaner but longer process)

 

Giulio

Link to comment
Share on other sites

thanks for your reply,

 

but the solution is for datamatrix barcode,  i need qrcode.

 

i guess i have to replace this code line by another one, but which one for qrcode ?

new com.barcodelib.barcode.BarcodeJasperRenderer(com.barcodelib.barcode.BarcodeJasperFactory.createDataMatrix("123456789", 0, 0, 5))

Link to comment
Share on other sites

thanks for all your help.

 

but i am not a java developer, so i can not do it myself this coding programmation.

then i change my way and i did my mailing with qrcode generated by using word 2007 liek this way :

http://beyondthekeeboard.wordpress.com/2009/09/18/creating-a-mail-merge-in-word-using-qr-codes-from-google-maps-api/

 

That way takes only 1 minute for whom already does how to do a word mailing.

 

I hope next release of irepert could include QRcode like classic barcode are well and already right included in ireport. Let's hope !

 

bye

Link to comment
Share on other sites

  • 1 year 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...