Package net.sf.jasperreports.engine.export

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


        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_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.IMAGES_URI, "/servlets/jrimage?image=");
 
  request.getSession().setAttribute(BaseHttpServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,jasperPrint);
 
  Logger.debug(this, "Exporting report");
  exporter.exportReport();
  request.setAttribute("reportSB", sbuffer);
  request.setAttribute("pageIndex", pageIndex);
  request.setAttribute("lastPageIndex", lastPageIndex);
  request.setAttribute("reportId", report.getInode());
  request.setAttribute("submittedPars", submittedPars);
View Full Code Here

        case HTML:
          logger.debug(bundle.getString("exporting-report", "html"));
          JRHtmlExporter exporterHTML = new JRHtmlExporter();
          exporterHTML.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
          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);
View Full Code Here

        case HTML:
          logger.debug(bundle.getString("exporting-report", "html"));
          JRHtmlExporter exporterHTML = new JRHtmlExporter();
          exporterHTML.setParameter(JRHtmlExporterParameter.JASPER_PRINT, print);
          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);
View Full Code Here

    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destinationFolder + File.separatorChar + reportName
        + "." + EXPORT_FORMAT.HTML.toString().toLowerCase());
    exporter.setParameter(JRHtmlExporterParameter.IGNORE_PAGE_MARGINS, true);
    exporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, true);
    exporter.setParameter(JRHtmlExporterParameter.IS_WHITE_PAGE_BACKGROUND, false);
    exporter.exportReport();
  }

  private void exportXLS(String destinationFolder, String reportName, JasperPrint jasperPrint) throws JRException {
    JRXlsExporter exporter = new JRXlsExporter();
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
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.