sampathku Posted December 28, 2009 Share Posted December 28, 2009 FolksI am trying to output a report as HTML, the eventual goal to actully stream the HTML into an HTML email rather than to screen. PrintWriter pw = response.getWriter(); response.setContentType("text/html"); JRHtmlExporter htmlExporter = new JRHtmlExporter(); htmlExporter.setParameter(JRExporterParameter.JASPER_PRINT, jPrint); htmlExporter.setParameter(JRExporterParameter.OUTPUT_WRITER, pw); htmlExporter.exportReport(); pw.flush(); pw.close();There is an image on the page, but it's none of the areas marked with the missing image cross or the other funny blank squares. I cant use an ImageServlet because I am not hosting a web application. I get request and have to return a html with the images intact. Any Idea how I can achieve this.CheersSampath Link to comment Share on other sites More sharing options...
lucianc Posted December 29, 2009 Share Posted December 29, 2009 Follow-up at http://jasperforge.org/plugins/espforum/view.php?group_id=102&forumid=103&topicid=68949 Link to comment Share on other sites More sharing options...
nelson.alves Posted October 17, 2014 Share Posted October 17, 2014 Follow up at http://community.jaspersoft.com//questions/825900/how-sent-report-html-file-email-body-images 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