Package net.sf.jasperreports.engine.export.ooxml

Examples of net.sf.jasperreports.engine.export.ooxml.JRPptxExporter


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

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

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


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

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

    exporter.exportReport();

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

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

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

    exporter.exportReport();

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

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

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

    exporter.exportReport();

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

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

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

    exporter.exportReport();

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

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

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

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

    return "pptx";
  }

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

TOP

Related Classes of net.sf.jasperreports.engine.export.ooxml.JRPptxExporter

Copyright © 2018 www.massapicom. 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.