Examples of exportReport()


Examples of net.sf.jasperreports.engine.export.JRXhtmlExporter.exportReport()

    JRXhtmlExporter exporter = new JRXhtmlExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

    System.err.println("XHTML creation time : " + (System.currentTimeMillis() - start));
  }

View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXlsAbstractExporter.exportReport()

      exporter.setParameter(JRXlsAbstractExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);
      exporter.setParameter(JRXlsAbstractExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);

      try
      {
        exporter.exportReport();
        fbos.close();

        if (fbos.size()> 0)
        {
          response.setContentType(getResponseContentType());
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXlsExporter.exportReport()

    protected InputStream exportToExcel(JasperPrint jp) throws Exception {
        JRXlsExporter excelExporter = new JRXlsExporter();
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        excelExporter.setParameter(JExcelApiExporterParameter.JASPER_PRINT, jp);
        excelExporter.setParameter(JExcelApiExporterParameter.OUTPUT_STREAM, output);
        excelExporter.exportReport();
        return new ByteArrayInputStream(output.toByteArray());
    }

    protected InputStream exportToPDF(JasperPrint jp) throws Exception {
        return new ByteArrayInputStream(JasperExportManager.exportReportToPdf(jp));
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXlsExporter.exportReport()

    {
      JRXlsExporter exporter = new JRXlsExporter();
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_FILE, file);
      exporter.setParameter(JRXlsAbstractExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);
      exporter.exportReport();
    }
  }

}
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXlsExporter.exportReport()

    {
      JRXlsExporter exporter = new JRXlsExporter();
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_FILE, file);
      exporter.setParameter(JRXlsAbstractExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
      exporter.exportReport();
    }
  }

}
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXlsExporter.exportReport()

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);

    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.JRXml4SwfExporter.exportReport()

        JRXml4SwfExporter exporter = new JRXml4SwfExporter();
       
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
       
        exporter.exportReport();

        System.err.println("XML4SWF creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_VIEW_HTML.equals(taskName))
      {
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXmlExporter.exportReport()

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFileName);
    exporter.setParameter(JRXmlExporterParameter.IS_EMBEDDING_IMAGES,
      isEmbeddingImages ? Boolean.TRUE : Boolean.FALSE);
   
    exporter.exportReport();
  }


  /**
   * Exports the generated report object read from the supplied input stream into XML format,
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXmlExporter.exportReport()

    JRXmlExporter exporter = new JRXmlExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
   
    exporter.exportReport();
  }


  /**
   * Exports the generated report object supplied as parameter into XML format
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JRXmlExporter.exportReport()

    JRXmlExporter exporter = new JRXmlExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_STRING_BUFFER, sbuffer);
   
    exporter.exportReport();
   
    return sbuffer.toString();
  }

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.