Examples of JExcelApiExporter


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

      contentType = "application/msword";
      exporter = new JRRtfExporter();
    }else if( FORMAT_XLS.equalsIgnoreCase( type ) ){
      contentType = "application/vnd.ms-excel";
      //exporter = new JRXlsExporter();
      exporter = new JExcelApiExporter();
    }else{
      log.warn( "Export type not in ['PDF','XML','CSV','RTF','XLS','HTML'], use 'XLS'");
      contentType = "application/vnd.ms-excel";
      exporter = new JExcelApiExporter();
    }
   
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
   
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
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.