Package org.fenixedu.academic.report.accounting

Examples of org.fenixedu.academic.report.accounting.GuideDocument


            HttpServletResponse response) throws IOException {

        PaymentsManagementDTO managementDTO =
                (PaymentsManagementDTO) RenderUtils.getViewState("paymentsManagementDTO").getMetaObject().getObject();

        final GuideDocument document = new GuideDocument(managementDTO, getMessageResourceProvider(request));
        final byte[] data = ReportsUtils.exportToProcessedPdfAsByteArray(document);

        response.setContentLength(data.length);
        response.setContentType("application/pdf");
        response.addHeader("Content-Disposition", String.format("attachment; filename=%s.pdf", document.getReportFileName()));

        response.getOutputStream().write(data);

        return null;
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.report.accounting.GuideDocument

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.