Package net.sf.jasperreports.engine.export

Examples of net.sf.jasperreports.engine.export.JRCsvMetadataExporter


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

    File destFile = new File(sourceFile.getParent(), jasperPrint.getName() + ".metadata.csv");
   
    JRCsvMetadataExporter exporter = new JRCsvMetadataExporter();
   
    exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
    exporter.setParameter(JRExporterParameter.OUTPUT_FILE_NAME, destFile.toString());
   
    exporter.exportReport();

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

TOP

Related Classes of net.sf.jasperreports.engine.export.JRCsvMetadataExporter

Copyright © 2018 www.massapicom. 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.