Package br.jus.tjrn.arq.report.exception

Examples of br.jus.tjrn.arq.report.exception.ReportFileManagerException


            // Utilizando o stream para gerar o arquivo base do relatório
            // (jasperPrint).
            jasperPrint = JasperFillManager.fillReport(reportInputStream,
                    reportFile.getFillParams(), new JREmptyDataSource());
        } catch (JRException e) {
            throw new ReportFileManagerException(msgErro, e);
        }
        return jasperPrint;
    }
View Full Code Here


        byte[] result = null;
        try {
            JasperPrint jasperPrint = fillReport(reportFile);
            result = JasperExportManager.exportReportToPdf(jasperPrint);
        } catch (JRException e) {
            throw new ReportFileManagerException(
                    "Ocorreu um erro ao tentar exportar o relatório para o formato PDF",
                    e);
        }
        return result;
    }
View Full Code Here

            xls.setParameter(JRXlsExporterParameter.IS_WHITE_PAGE_BACKGROUND,
                    Boolean.FALSE);
            xls.exportReport();

        } catch (JRException e) {
            throw new ReportFileManagerException(
                    "Ocorreu um erro ao tentar exportar os dados para formato XLS",
                    e);
        }
        return byteArrayXls.toByteArray();
    }
View Full Code Here

        JasperPrint jasperPrint;
        try {
            jasperPrint = fillReport(reportFile);
            JasperExportManager.exportReportToPdfFile(jasperPrint, outputFile);
        } catch (JRException e) {
            throw new ReportFileManagerException(
                    "Ocorreu um erro ao tentar exportar os dados para o formato PDF",
                    e);
        }
    }
View Full Code Here

            outputStream = new FileOutputStream(outputFile);
            outputStream.write(xls);
            outputStream.flush();
            outputStream.close();
        } catch (FileNotFoundException e) {
            throw new ReportFileManagerException(
                    "Arquivo ou caminho não encontrado: " + outputFile, e);
        } catch (IOException e) {
            throw new ReportFileManagerException(
                    "Ocorreu um erro ao tentar exportar os dados para o formato XLS",
                    e);
        }
    }
View Full Code Here

TOP

Related Classes of br.jus.tjrn.arq.report.exception.ReportFileManagerException

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.