michaelremy Posted September 9, 2011 Share Posted September 9, 2011 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 More sharing options...
Giulio Toffoli Posted September 9, 2011 Share Posted September 9, 2011 The solution proposed here is the best one:http://www.barcodelib.com/java_barcode/barcode_symbologies/barcode_ireport.htmlthe 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 Elementb) Implement a custom component a plug it inside JR (cleaner but longer process) Giulio Link to comment Share on other sites More sharing options...
michaelremy Posted September 10, 2011 Author Share Posted September 10, 2011 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 More sharing options...
Giulio Toffoli Posted September 10, 2011 Share Posted September 10, 2011 What is correct is the approach. You can even use open source libraries like ZXing to generate the barcode image Giulio Link to comment Share on other sites More sharing options...
michaelremy Posted September 17, 2011 Author Share Posted September 17, 2011 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 More sharing options...
IrisYan219 Posted December 12, 2012 Share Posted December 12, 2012 1 Link to comment Share on other sites More sharing options...
IrisYan219 Posted December 12, 2012 Share Posted December 12, 2012 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now