Jump to content
We've recently updated our Privacy Statement, available here ×

chalithalawanga

Members
  • Posts

    2
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Posts posted by chalithalawanga

  1. 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!
×
×
  • Create New...