Examples of exportReport()


Examples of dori.jasper.engine.export.JRPrintServiceExporter.exportReport()

    try {
      if (preview) {
        // preview is started in non_modal
        JasperViewer.viewReport(jasperPrint, false);
      } else {
        exporter.exportReport();
      }
    } catch (JRException je) {
      System.out.println(
        "Error printing report:\n" + je.getMessage());
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRAbstractExporter.exportReport()

        }
      }

      exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
      exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, outputStream);
      exporter.exportReport();
    }
    catch (Exception e)
    {
      throw new ProviderException(e.toString());
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.JRExporter.exportReport()

   
        exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, baos);  
        exporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE);
        exporter.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND, Boolean.FALSE);
        exporter.exportReport();

        return baos.toByteArray();
    }
   
  /**
 
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JExcelApiExporter.exportReport()

    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("XLS creation time : " + (System.currentTimeMillis() - start));
  }
 
 
View Full Code Here

Examples of net.sf.jasperreports.engine.export.JExcelApiExporter.exportReport()

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

Examples of net.sf.jasperreports.engine.export.JExcelApiExporter.exportReport()

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

Examples of net.sf.jasperreports.engine.export.JExcelApiExporter.exportReport()

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

      )
    {
      JRCsvExporter exporter = new JRCsvExporter();
      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.JRCsvExporter.exportReport()

    JRCsvExporter exporter = new JRCsvExporter();
   
    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

Examples of net.sf.jasperreports.engine.export.JRCsvExporter.exportReport()

        JRCsvExporter exporter = new JRCsvExporter();
       
        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));
      }
      else if (TASK_ODT.equals(taskName))
      {
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.