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

Start New Page for Excel only


christopher.astles

Recommended Posts

I want to create a report which will break at natural places when exported to PDF, but I want to use the 'Start New Page' property on the group when exporting to Excel, so that I can combine this with the net.sf.jasperreports.export.xls.one.page.per.sheet property to have all of my groups on different sheets within my excel. Is there a way to do this?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

The following steps should work in this case:

  • in your report set the following properties:
<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="false"/><property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>

  • for the first element in the group header band set this property:
<property name="net.sf.jasperreports.export.xls.break.before.row" value="true"/>

 

Link to comment
Share on other sites

  • 3 weeks later...

@shertage sorry for the slow response - the email notification went to my spam and in the end we did the report a different way. I tried your suggestion but it still creates a new pdf page every time the group changes, and because of

<property name="net.sf.jasperreports.export.xls.one.page.per.sheet" value="false"/>[/code]

now the groups don't come out on different tabs

 

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