0 Replies Latest reply: Jan 22, 2013 4:17 AM by 980221 RSS

    Error in JRPptxExporter

    980221
      Dear Friend ....
      JasperReport compiledReport = JasperCompileManager.compileReport(jrxmlFilePath);
      JasperPrint jasperPrint = JasperFillManager.fillReport(compiledReport, mymap, con);
      JRPptxExporter pptExporter = new JRPptxExporter();
      pptExporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      pptExporter.setParameter(JRExporterParameter.OUTPUT_STREAM, pptStream);
      pptExporter.exportReport();
      reportInbytes = pptStream.toByteArray();
      response.setContentType("application/vnd.ms-powerpoint");
      response.setHeader("Content-disposition", "attachment; filename=Report" );
      response.setContentLength(reportInbytes.length);
      response.getOutputStream().write(reportInbytes);
      response.getOutputStream().flush();


      i am using the code for open ppt but ppt is opening blank . and showing the message the power point is unable to display the text , image ,the file become currapted and affeceted slides is replaced by blank slides