Jump to content

how to get qr code on to report in Jaspersoft studio


Go to solution Solved by hozawa,

Recommended Posts

Posted

Im new to using Java and Jaspersoft studio, have never used iReport and I want to add qr code to a report.

The barcode element available on the version 5.6.0 of Jaspersoft studio i'm currently using does not have an option for qr codes even though I know that it does support them.

how can I add qr code to the barcode element and what other ways can I add qr codes?

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution
Posted

Just create a scriptlet to call qrcode java program and to output to image. Scriptlet codes are the same in both iReport and Studio so you can just use codes for iReport. Google the net to find a sample.

  • 4 years later...
Posted

net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: com.google.zxing.client.j2se.MatrixToImageWriter.toBufferedImage(new com.google.zxing.qrcode.QRCodeWriter().encode($P{QrCode},com.google.zxing.BarcodeFormat.QR_CODE,1000,1000)) at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:536) at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$17(ReportController.java:511) at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:429) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)

 

it works in ireport5.6 but it doesn't pass report compile in jasperstudio6.6!!!

the abolve is error log detail info.

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