2002 JI Open Discussion Posted August 18, 2006 Share Posted August 18, 2006 By: Haggis - haggisn Export HTML/PDF (without/with pagebreaks) 2003-09-11 04:34 Hi group, i've got a question concerning exporting a report as html and pdf. I've created one MasterReport with two subreports, everything works fine, including the export either in a html or pdf-stream. Now I wish to make little differences between the html-export and the pdf-export. The report exported as html should not break any pages (like setting the pageHeight in the <jasperReport>-Tag to a really high number). It should be one unbroken big table. The pdf should still breaks pages and print a footer on each page, like yet realized (pageHeight="569"). Are there any tips how I can achieve this goal? Thanks for all your comments... Regards, Georg Link to comment Share on other sites More sharing options...
vibhav Posted February 2, 2012 Share Posted February 2, 2012 Hi Georg,Did you get any solution for this problem?I am also facing similar issue with html & csv type of exports. Regards,Vibhav Link to comment Share on other sites More sharing options...
kpukka Posted February 2, 2012 Share Posted February 2, 2012 You resurrected a very old thread. Your question has been answered in various places, including here: http://jasperreports.sourceforge.net/sample.reference/nopagebreak/index.htmlSummarized for HTML export: http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/JRParameter.html#IS_IGNORE_PAGINATION = trueThen: htmlExporter.setParameter(JRHtmlExporterParameter.BETWEEN_PAGES_HTML, ""); htmlExporter.setParameter(JRHtmlExporterParameter.HTML_HEADER, ""); htmlExporter.setParameter(JRHtmlExporterParameter.HTML_FOOTER, ""); htmlExporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); 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