Jump to content
Changes to the Jaspersoft community edition download ×

Export HTML/PDF (without/with pagebreaks)


Recommended Posts

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

  • 5 years later...
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

 You resurrected a very old thread. Your question has been answered in various places, including here:

Summarized for HTML export:

Then:

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

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...