how to create QRcode into ireport ?

0

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

michaelremy's picture
Joined: Mar 2 2010 - 9:53am
Last seen: 9 years 11 months ago

5 Answers:

0

 

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

giulio's picture
29620
Joined: Jan 2 2007 - 4:15pm
Last seen: 11 months 3 weeks ago
0

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))

michaelremy's picture
Joined: Mar 2 2010 - 9:53am
Last seen: 9 years 11 months ago
0

What is correct is the approach.

 

You can even use open source libraries like ZXing to generate the barcode image

 

Giulio

giulio's picture
29620
Joined: Jan 2 2007 - 4:15pm
Last seen: 11 months 3 weeks ago
0

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

michaelremy's picture
Joined: Mar 2 2010 - 9:53am
Last seen: 9 years 11 months ago

1

IrisYan219 - 7 years 1 month ago
0

I checked the second website you mentioned in your question: onbarcode.com. It seems that you go to the wrong place. I find this on that website, http://www.onbarcode.com/ireport/ I think this is what you really want, not Jasper

IrisYan219's picture
Joined: Dec 11 2012 - 11:11pm
Last seen: 7 years 1 month ago
Feedback
randomness