Jump to content

To display Jasper Reports directly into the browser


mkhan523

Recommended Posts

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

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...