Package net.sf.jasperreports.engine.export

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


   */
  public void geraHTML(Writer writer, HttpServletRequest request) {
    try {
      JRHtmlExporter exporter = getHtmlExporter(request);
      exporter.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER, writer);
      exporter.exportReport()
    } catch (JRException e) {
      throw new GeracaoBoletoException(e);
    }
  }

View Full Code Here


   */
  public void geraHTML(Writer writer, HttpServletRequest request) {
    try {
      JRHtmlExporter exporter = getHtmlExporter(request);
      exporter.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER, writer);
      exporter.exportReport()
    } catch (JRException e) {
      throw new GeracaoBoletoException(e);
    }
  }

View Full Code Here

    Map<JRExporterParameter, Object> p = new HashMap<JRExporterParameter, Object>();
    p.put(JRHtmlExporterParameter.JASPER_PRINT, jasperPrint);
    p.put(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
    p.put(JRHtmlExporterParameter.OUTPUT_FILE_NAME, path + "/" + fileName);
    exporter.setParameters(p);
    exporter.exportReport();

  }

  private static JasperDesign createJasperDesign(InputStream reportFile, GridReportVO gridReportVO)
      throws JRException {
View Full Code Here

        exportParameters.put(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
        exportParameters.put(JRHtmlExporterParameter.SIZE_UNIT,
            JRHtmlExporterParameter.SIZE_UNIT_POINT);
        exportParameters.put(JRHtmlExporterParameter.OUTPUT_STREAM, os);
        exporter.setParameters(exportParameters);
        exporter.exportReport();

      } else if (strOutputType.equals("pdf")) {
        // response.setContentType("application/pdf");
        // response.setHeader( "Content-disposition", "attachment" +
        // "; filename=" + strFileName + "." +strOutputType);
View Full Code Here

        exportParameters.put(JExcelApiExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.FALSE);
        exportParameters.put(JExcelApiExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,
            Boolean.TRUE);

        exporter.setParameters(exportParameters);
        exporter.exportReport();

      } else {
        throw new ServletException("Output format no supported");
      }
    } catch (JRException e) {
View Full Code Here

        exportParameters.put(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE);
        exportParameters.put(JRHtmlExporterParameter.SIZE_UNIT,
            JRHtmlExporterParameter.SIZE_UNIT_POINT);
        exportParameters.put(JRHtmlExporterParameter.OUTPUT_STREAM, os);
        exporter.setParameters(exportParameters);
        exporter.exportReport();
      } else if (strOutputType.equals("pdf") || strOutputType.equalsIgnoreCase("xls")) {
        reportId = UUID.randomUUID();
        saveReport(variables, jasperPrint, exportParameters, strFileName + "-" + (reportId) + "."
            + strOutputType);
        response.setContentType("text/html;charset=UTF-8");
View Full Code Here

        exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT,
                JRHtmlExporterParameter.SIZE_UNIT_PIXEL);
        exporter.setParameter(JRHtmlExporterParameter.ZOOM_RATIO, 1.0f);
        exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "");
        exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, "");
        exporter.exportReport();
        report = buffer.toString();
        request.getSession().setAttribute(
                ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
                jasperPrint);
    }
View Full Code Here

        exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT,
                JRHtmlExporterParameter.SIZE_UNIT_PIXEL);
        exporter.setParameter(JRHtmlExporterParameter.ZOOM_RATIO, 1.0f);
        exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "");
        exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, "");
        exporter.exportReport();
        report = buffer.toString();
        request.getSession().setAttribute(
                ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,
                jasperPrint);
    }
View Full Code Here

        exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT,
                JRHtmlExporterParameter.SIZE_UNIT_POINT);
        exporter.setParameter(JRHtmlExporterParameter.ZOOM_RATIO, 1.0f);
        exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "");
        exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, "");
        exporter.exportReport();
        report = buffer.toString();
        report = report.replaceAll(
                "<p style=\"overflow: hidden; text-indent: 0px; \">", "");
        report = report.replaceAll("</span></p></td>", "</span></td>");
        return SUCCESS;
View Full Code Here

        exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT,
                JRHtmlExporterParameter.SIZE_UNIT_POINT);
        exporter.setParameter(JRHtmlExporterParameter.ZOOM_RATIO, 1.0f);
        exporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, "");
        exporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, "");
        exporter.exportReport();
        report = buffer.toString();
        report = report.replaceAll(
                "<p style=\"overflow: hidden; text-indent: 0px; \">", "");
        report = report.replaceAll("</span></p></td>", "</span></td>");
        return SUCCESS;
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.