Please check this blog post if it helps...
https://jsreport.net/blog/barcode-in-report