zipa Posted May 30, 2007 Share Posted May 30, 2007 Hello,I'm new to JasperReports, and I have a problem with exporting to HTML:I use iReport to create a report with subreports in it. When I export to HTML, the subreport table is separated when the output is larger than one page.This is good if I export to PDF, but in HTML I would like to have my hole report in one piece.Is there for example a way to expand the report page size variable.I hope someone has a solution for my little problem. Link to comment Share on other sites More sharing options...
raffimd Posted May 30, 2007 Share Posted May 30, 2007 Set few parameters in the JRParameter classmainly the following parametersBETWEEN_PAGES_HTMLIS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS--------------------------- Code:else if ("html".equals(reportFormat)) { JRHtmlExporter exporter = new JRHtmlExporter(); exporter.setParameter( JRExporterParameter.JASPER_PRINT, filedReport); exporter.setParameter( JRExporterParameter.OUTPUT_FILE_NAME, oFName); exporter.setParameter( JRHtmlExporterParameter.BETWEEN_PAGES_HTML, ""«»); exporter.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, Boolean.TRUE); exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, Boolean.FALSE); exporter.exportReport();} Link to comment Share on other sites More sharing options...
zipa Posted May 31, 2007 Author Share Posted May 31, 2007 Thank you for your help.Your example worked very well for me. 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