cahangir369 Posted October 23, 2014 Share Posted October 23, 2014 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] 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