Jump to content
Changes to the Jaspersoft community edition download ×

Jasperprint prints like byte code


cahangir369

Recommended Posts

Hi, i want to print using jasperprint . Template created in ireport with empty datasource. But problem is that it prints like symbols byte code, (chinese symbols , undefined symbols etc.) . With virtual printer it works fine, but with physical printer not. I tried to print with awt.print  and it worked fine. Below my source code. Please help. 

Map <String, Object> parameters = new HashMap<String, Object>();parameters.put("receipt_n", "4545454545");parameters.put("bank_name", "TEchnique");parameters.put("bank_voen", "213131231");parameters.put("budget_org", "4542");parameters.put("terminal", "1024");parameters.put("print_date", "2014 04 05 21:12:03"); parameters.put("total_amount", 1542);parameters.put("sc_desc", "Smm"); jasperPrint = JasperFillManager.fillReport("hop_receipt_main.jasper",parameters,new    JREmptyDataSource()); jasperPrint.setOrientation(OrientationEnum.LANDSCAPE);JasperPrintManager.printReport(jasperPrint, true);[/code]
code.JPG.9e075e75d4ca975c77fd16ad6a8a4496.JPG
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

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