Examples of JasperPrint


Examples of net.sf.jasperreports.engine.JasperPrint

  public void text() throws JRException
  {
    long start = System.currentTimeMillis();
    JRTextExporter exporter = new JRTextExporter();
    File sourceFile = new File("build/reports/TextReport.jrprint");
    JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".txt");

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
    exporter.exportReport();
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void xml() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/TextReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".jrpxml");
   
    JRXmlExporter exporter = new JRXmlExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void rtf() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".rtf");
   
    JRRtfExporter exporter = new JRRtfExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void xls() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".xls");
   
    JRXlsExporter exporter = new JRXlsExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void jxl() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".jxl.xls");

    JExcelApiExporter exporter = new JExcelApiExporter();

    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void csv() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".csv");
   
    JRCsvExporter exporter = new JRCsvExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void odt() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".odt");
   
    JROdtExporter exporter = new JROdtExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void ods() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

    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());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void docx() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".docx");
   
    JRDocxExporter exporter = new JRDocxExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
View Full Code Here

Examples of net.sf.jasperreports.engine.JasperPrint

  public void xlsx() throws JRException
  {
    long start = System.currentTimeMillis();
    File sourceFile = new File("build/reports/ParagraphsReport.jrprint");

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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".xlsx");
   
    JRXlsxExporter exporter = new JRXlsxExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.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.