Package net.sf.jasperreports.engine.export

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


      callReportWindow(this.amedia, "XLS");
    } else if (outputFormat.equalsIgnoreCase("RTF") || outputFormat.equalsIgnoreCase("DOC")) {
      JRRtfExporter exporterRTF = new JRRtfExporter();
      exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, jp);
      exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
      exporterRTF.exportReport();
      mediais = new ByteArrayInputStream(this.output.toByteArray());
      amedia = new AMedia("FileFormatRTF", "rtf", "application/rtf", mediais);

      callReportWindow(amedia, "RTF-DOC");
    }
View Full Code Here


      callReportWindow(amedia, "XLS");
    } else if (outputFormat.equalsIgnoreCase("RTF") || outputFormat.equalsIgnoreCase("DOC")) {
      JRRtfExporter exporterRTF = new JRRtfExporter();
      exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, jp);
      exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
      exporterRTF.exportReport();
      mediais = new ByteArrayInputStream(output.toByteArray());
      amedia = new AMedia("FileFormatRTF", "rtf", "application/rtf", mediais);

      callReportWindow(amedia, "RTF-DOC");
    }
View Full Code Here

      callReportWindow(amedia, "XLS");
    } else if (outputFormat.equalsIgnoreCase("RTF") || outputFormat.equalsIgnoreCase("DOC")) {
      JRRtfExporter exporterRTF = new JRRtfExporter();
      exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, jp);
      exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
      exporterRTF.exportReport();
      mediais = new ByteArrayInputStream(output.toByteArray());
      amedia = new AMedia("FileFormatRTF", "rtf", "application/rtf", mediais);

      callReportWindow(amedia, "RTF-DOC");
    }
View Full Code Here

      callReportWindow(amedia, "XLS");
    } else if (outputFormat.equalsIgnoreCase("RTF") || outputFormat.equalsIgnoreCase("DOC")) {
      JRRtfExporter exporterRTF = new JRRtfExporter();
      exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, jp);
      exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
      exporterRTF.exportReport();
      mediais = new ByteArrayInputStream(output.toByteArray());
      amedia = new AMedia("FileFormatRTF", "rtf", "application/rtf", mediais);

      callReportWindow(this.amedia, "RTF-DOC");
    }
View Full Code Here

      callReportWindow(amedia, "XLS");
    } else if (outputFormat.equalsIgnoreCase("RTF") || outputFormat.equalsIgnoreCase("DOC")) {
      JRRtfExporter exporterRTF = new JRRtfExporter();
      exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, jp);
      exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, output);
      exporterRTF.exportReport();
      mediais = new ByteArrayInputStream(output.toByteArray());
      amedia = new AMedia("FileFormatRTF", "rtf", "application/rtf", mediais);

      callReportWindow(amedia, "RTF-DOC");
    }
View Full Code Here

        case RTF:
          logger.debug(bundle.getString("exporting-report", "rtf"));
          JRRtfExporter exporterRTF = new JRRtfExporter();
          exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, print);
          exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
          exporterRTF.exportReport();
        case XLS:
          logger.debug(bundle.getString("exporting-report", "xls"));
          JRXlsExporter exporterXLS = new JRXlsExporter();
          exporterXLS.setParameter(JRExporterParameter.JASPER_PRINT, print);
          exporterXLS.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
View Full Code Here

        case RTF:
          logger.debug(bundle.getString("exporting-report", "rtf"));
          JRRtfExporter exporterRTF = new JRRtfExporter();
          exporterRTF.setParameter(JRExporterParameter.JASPER_PRINT, print);
          exporterRTF.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
          exporterRTF.exportReport();
        case XLS:
          logger.debug(bundle.getString("exporting-report", "xls"));
          JRXlsExporter exporterXLS = new JRXlsExporter();
          exporterXLS.setParameter(JRExporterParameter.JASPER_PRINT, print);
          exporterXLS.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
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.