mkhan523 Posted March 10, 2011 Share Posted March 10, 2011 Can anyone please provide me with an example or help me out with how to display jasper reports directly into the browser?? i have seen the example given in jasper reports......... but the problem i am facing is i have to display some external images along with jasper reports on the browser........ i am unable to do so......... only report is being displayed....... Please check out the attachment to understand the requirement clearly........Code:JRHtmlExporter htmlExporter=new JRHtmlExporter(); request.getSession().setAttribute(ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,jasperPrint); htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT,jasperPrint); htmlExporter.setParameter(JRExporterParameter.OUTPUT_WRITER,out); htmlExporter.setParameter(JRHtmlExporterParameter.IMAGES_URI,"image?image="); htmlExporter.exportReport(); 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