Examples of JROdtExporter


Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

      JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

      File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
      JROdtExporter exporter = new JROdtExporter();
   
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
      exporter.exportReport();

      System.err.println("Report : " + sourceFile + ". ODT creation time : " + (System.currentTimeMillis() - start));
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("ODT creation time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("ODT creation time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("ODT creation time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("ODT creation time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("ODT creation time : " + (System.currentTimeMillis() - start));
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

  public String getExtension() {
    return "odt";
  }

  public JRExporter setup() {
    return new JROdtExporter();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

      public void ODT(ActionEvent actionEvent) throws JRException, IOException{
       init();
       HttpServletResponse httpServletResponse=(HttpServletResponse)FacesContext.getCurrentInstance().getExternalContext().getResponse();
      httpServletResponse.addHeader("Content-disposition", "attachment; filename=report.odt");
       ServletOutputStream servletOutputStream=httpServletResponse.getOutputStream();
       JROdtExporter docxExporter=new JROdtExporter();
       docxExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
       docxExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, servletOutputStream);
       docxExporter.exportReport();
   }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

    return "odt";
  }

  @SuppressWarnings("rawtypes")
  public Exporter setup() {
    return new JROdtExporter();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdtExporter

          exporterHTML.setParameter(JRHtmlExporterParameter.OUTPUT_STREAM, outputStream);
          exporterHTML.exportReport();
          break;
        case ODT:
          logger.debug(bundle.getString("exporting-report", "odt"));
          JROdtExporter exporterODT = new JROdtExporter();
          exporterODT.setParameter(JRExporterParameter.JASPER_PRINT, print);
          exporterODT.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
          exporterODT.exportReport();
          break;
        case PDF:
          logger.debug(bundle.getString("exporting-report", "pdf"));
          JRPdfExporter exporterPDF = new JRPdfExporter();
          exporterPDF.setParameter(JRPdfExporterParameter.JASPER_PRINT, print);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.