Jump to content
JasperReports Library 7.0 is now available ×

Subreport doesn't start on a new page...


2005 IR Help

Recommended Posts

By: Marcelo - marcelocda

Subreport doesn't start on a new page...

2004-07-22 13:57

Hi,

 

I have a master report with only a detail band and, in it I have a subreport.

I don't have any kind of texts or elements, except for the subreport, in this master report.

This subreport is filled with a List, then, for each Object in this List the subreport will generate a completely different report from the one generated before.

The problem is: I can't make the subreport start on a new page...Each report generated by the subreport component should start on a new page.

I already tried to create a group and check the "start on a new page" option, but, nothing happened.

So, I'm stuck.

 

Please, someone could help me?

 

Thanks in advance!

Marcelo.

 

 

 

 

By: Marcelo - marcelocda

RE: Subreport doesn't start on a new page...

2004-07-26 04:40

Nobody?

:(

 

 

 

 

By: rumbuff - rumbuff

RE: Subreport doesn't start on a new page...

2004-07-27 06:32

Teodor said elswhere in this forum that "group.setStartNewPage(true)" might not work and suggests to use "group.setMinHeightToStartNewPage(minHeightToStartNewPage)"

instead.

 

Try "minHeightToStartNewPage = design.getPageHeight() - design.getTopMargin() - design.getBottomMargin()".

 

I had the same problem, and with this workaround it all works well.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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