chalithalawanga Posted December 16, 2014 Share Posted December 16, 2014 I created a java application and it is running on windows 7 finely. I created Jasper reports for that software when I try to print a report from Epson lx-300+ii printer letters are printing with out spaces and it is difficult to read.But when I print another document from another software like Microsoft word it prints fine. Picture of the report:Code that I used: public void generateReport() throws PrinterException { try { String sourceFileName = "src/POS_bill/esFourReport.jasper";String printFileName = null;DataBeanFactory2 DataBean = new DataBeanFactory2();JRBeanCollectionDataSource beanColDataSource = new JRBeanCollectionDataSource(DataBean.generateCollection());Map parameters = new HashMap();printFileName = JasperFillManager.fillReportToFile( sourceFileName, parameters, beanColDataSource); if (printFileName != null){ JasperPrintManager.printReport(printFileName, false); }} catch (Exception e) { JOptionPane.showMessageDialog(null,e);} } someone can help me?thank you! 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