Interface JasperReportExportService

  • All Known Implementing Classes:
    DefaultJasperReportExportService

    public interface JasperReportExportService
    Exports reports
    Spring Bean ID:
    jasperReportExportService
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] exportToExcel​(net.sf.jasperreports.engine.JasperPrint filledReport)
      Exports report to Excel
      java.awt.image.BufferedImage exportToImage​(net.sf.jasperreports.engine.JasperPrint filledReport)
      Exports report to image
      byte[] exportToPdf​(net.sf.jasperreports.engine.JasperPrint filledReport)
      Exports report to PDF
    • Method Detail

      • exportToExcel

        byte[] exportToExcel​(net.sf.jasperreports.engine.JasperPrint filledReport)
                      throws JasperReportExportException
        Exports report to Excel
        Parameters:
        filledReport - report to export
        Returns:
        excel file as byte array
        Throws:
        JasperReportExportException - if any problem occur
      • exportToPdf

        byte[] exportToPdf​(net.sf.jasperreports.engine.JasperPrint filledReport)
                    throws JasperReportExportException
        Exports report to PDF
        Parameters:
        filledReport - report to export
        Returns:
        pdf file as byte array
        Throws:
        JasperReportExportException - if any problem occur
      • exportToImage

        java.awt.image.BufferedImage exportToImage​(net.sf.jasperreports.engine.JasperPrint filledReport)
                                            throws JasperReportExportException
        Exports report to image
        Parameters:
        filledReport - report to export
        Returns:
        image
        Throws:
        JasperReportExportException - if any problem occur