Jump to content
Changes to the Jaspersoft community edition download ×

Error when printing jasper report with Epson lx-300+ii printer in windows 7 from my java application


chalithalawanga

Recommended Posts

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:

IMAG1734.jpg.f256a7eab0925a5799f6cd376f0006ad.jpg

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

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