I have tried this in jsp but not in tapestry.

        path = application.getRealPath("/");
        ouputStream = response.getOutputStream();
        jasperPrint = JasperFillManager.fillReport(path + "reports/" +
filename, parameter, con);


This will generate a pdf report on reports folder in your web apps then call
the generated pdf in your application.


        response.setContentType("application/pdf");
        exporter = new JRPdfExporter();
        exporter.setParameter(JRExporterParameter.JASPER_PRINT,
jasperPrint);
        exporter.setParameter(JRExporterParameter.OUTPUT_STREAM,
ouputStream);


--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-locate-streamresponse-of-jasper-in-a-page-with-screenshot-tp4258880p4266778.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to