Jump to content
We've recently updated our Privacy Statement, available here ×

JasperReports Server does not insert page breaks in XLSX while Studio does


hozawa
Go to solution Solved by hozawa,

Recommended Posts

I'm having a problem with JasperReports Server 5.6.1 (and other versions too) with inserting page breaks when I export to xlsx.

Page breaks works as expected on web pages and on Jaspersoft Studio (in xlsx format), but JasperReports Server does not.

Has anybody else experienced this problem? It's kind of strange that JasperReports Server does not work in a similar fashion as Jaspersoft Reports.

Link to comment
Share on other sites

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

This is caused by differences in default values. Setting properties resolved the problem.

Resolved by adding the following properties in the report:

<property name="net.sf.jasperreports.export.xls.collapse.row.span" value="false"/> <property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="false"/>[/code]

There's a bug in JasperReports 5.2 which seems to ignore these properties so be sure use 5.6.x or above.

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