Examples of JRDocxExporter


Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    JRDocxExporterContext exporterContext,
    JRGenericPrintElement element,
    JRExporterGridCell gridCell
    )
  {
    JRDocxExporter exporter = (JRDocxExporter)exporterContext.getExporter();
   
    JRExporterGridCell newGridCell = getGridCellReplacement(exporterContext, element, gridCell);
   
    exporter.exportText(exporterContext.getTableHelper(), (JRPrintText)newGridCell.getElement(), newGridCell);
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

          getBundleString("save"),
          JOptionPane.OK_CANCEL_OPTION
          )
      )
    {
      JRDocxExporter exporter = new JRDocxExporter();
      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_FILE, file);
      exporter.exportReport();
    }
  }
View Full Code Here

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());

    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

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

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

   
        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());
       
        exporter.exportReport();

        System.err.println("DOCX creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_XLSX.equals(taskName))
      {
        File sourceFile = new File(fileName);
   
        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());
        exporter.setParameter(JRXlsExporterParameter.IS_ONE_PAGE_PER_SHEET, Boolean.TRUE);
       
        exporter.exportReport();

        System.err.println("XLSX creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_PPTX.equals(taskName))
      {
        File sourceFile = new File(fileName);
   
        JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
   
        File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".pptx");
       
        JRPptxExporter exporter = new JRPptxExporter();
       
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
       
        exporter.exportReport();

        System.err.println("PPTX creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_XHTML.equals(taskName))
      {
        File sourceFile = new File(fileName);
   
        JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
   
        File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".x.html");
       
        JRXhtmlExporter exporter = new JRXhtmlExporter();
       
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
       
        exporter.exportReport();

        System.err.println("XHTML creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_XML4SWF.equals(taskName))
      {
        File sourceFile = new File(fileName);
   
        JasperPrint jasperPrint = (JasperPrint)JRLoader.loadObject(sourceFile);
   
        File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".xml4swf");
       
        JRXml4SwfExporter exporter = new JRXml4SwfExporter();
       
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
       
        exporter.exportReport();

        System.err.println("XML4SWF creation time : " + (System.currentTimeMillis() - start));
      }
      else if (TASK_VIEW_HTML.equals(taskName))
      {
View Full Code Here

Examples of net.sf.jasperreports.engine.export.ooxml.JRDocxExporter

    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());
   
    exporter.exportReport();

    System.err.println("DOCX creation time : " + (System.currentTimeMillis() - start));
  }
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.