Skip to main content

Generate a QR code based on report URL (JavaScript)

Using a free Google QR code service (which is now deprecated)

report.api.bind("postrender", function() { var serviceUrl = "https://chart.googleapis.com/chart?cht=qr&chs=150x150&chl=" var url = serviceUrl + report.api.getUrl() var img = "<img class='my-qr-code' style='margin-left:auto; margin-right:auto;' src='" + url + "'>" report.api.find(".quad4").append(img) })

An alternative using another free QR code service

report.api.bind("postrender", function() { var url = report.api.getUrl() var img = "<img src='https://qrickit.com/api/qr.php?d=" + url + "&addtext=Report+URL&qrsize=150&t=p&e=m'>" report.api.find(".quad4").append(img) })

Was this article helpful?

We're sorry to hear that.