0 Replies Latest reply: May 4, 2009 1:51 AM by 807575 RSS

    Problem with jasper report viewing

    807575
      i'm trying to make report by jasper report and i have written folowing code
      try {
      newpackage.DBManager dbManager = new DBManager();
      Connection connection = dbManager.getConnection();
      String reportSource = "./resources/report1.jrxml";
      String reportDest = "./resources/report1.pdf";
      HashMap params = new HashMap();
      JasperReport jasperReport =
      JasperCompileManager.compileReport(reportSource);
      JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, params, connection);
      JasperExportManager.exportReportToPdfFile(jasperPrint, reportDest);
      } catch (Exception ex) {
      ex.printStackTrace();
      }
      but nothing is happening any 1 can help me?