2002 JI Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Bruno Cardoso - morcegopt JasperReports in PDF 2003-12-18 02:49 I'm trying to generate a report in PDF on IE browser but for some reason the output is completly blank. However, when I try to do it in Mozilla it works perfectly! Anyone had this problem or knows a solution for it? Thanks PS: If you are wondering, I set the context to "application/pdf" By: Gregory A. Swarthout - gswarthout RE: JasperReports in PDF 2003-12-18 09:40 response.setContentType("application/pdf"); response.setHeader("Cache-Control", ""); response.setHeader("Pragma", ""); response.setHeader("Content-disposition", "inline; filename=report.pdf"); response.setContentLength(content.length); response.getOutputStream().write(content); response.getOutputStream().flush(); By: Vladimir Aguirre Piedragil - vlad_pax RE: JasperReports in PDF 2003-12-18 10:37 what make the following lines exactly? response.setHeader("Cache-Control", ""); response.setHeader("Pragma", ""); response.setHeader("Content-disposition", "inline; filename=report.pdf"); By: Gregory A. Swarthout - gswarthout RE: JasperReports in PDF 2003-12-18 10:48 The first two lines workaround a specific problem ie has with PDFs which I can't recall at the moment. The third line is a convenience. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now