Examples of JROdsExporter


Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

      JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

      File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
      JROdsExporter exporter = new JROdsExporter();
   
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
      exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
   
      exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
    JROdsExporter exporter = new JROdsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
    JROdsExporter exporter = new JROdsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
    JROdsExporter exporter = new JROdsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
    JROdsExporter exporter = new JROdsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".ods");
   
    JROdsExporter exporter = new JROdsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
    exporter.setParameter(JRXlsExporterParameter.IS_FONT_SIZE_FIX_ENABLED, Boolean.TRUE);
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

  public String getExtension() {
    return "ods";
  }
 
  public JRExporter setup() {
    return new JROdsExporter();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

    return "ods";
  }
 
  @SuppressWarnings("rawtypes")
  public Exporter setup() {
    return new JROdsExporter();
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

          exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);
          exporterXLS.exportReport();
          break;
        case ODS:
          logger.debug(bundle.getString("exporting-report", "ods"));
            JROdsExporter exporterODS = new JROdsExporter();
            exporterODS.setParameter(JRExporterParameter.JASPER_PRINT, print);
            exporterODS.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
            exporterODS.exportReport();
            break;
        default:
          throw new DemoiselleException(bundle.getString("exception-reportimpl-not-found", type.name()));
      }
    } catch (JRException jre) {
View Full Code Here

Examples of net.sf.jasperreports.engine.export.oasis.JROdsExporter

          exporterXLS.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);
          exporterXLS.exportReport();
          break;
        case ODS:
          logger.debug(bundle.getString("exporting-report", "ods"));
            JROdsExporter exporterODS = new JROdsExporter();
            exporterODS.setParameter(JRExporterParameter.JASPER_PRINT, print);
            exporterODS.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
            exporterODS.exportReport();
            break;
        default:
          throw new DemoiselleException(bundle.getString("exception-reportimpl-not-found", type.name()));
      }
    } catch (JRException jre) {
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.