Jump to content
Changes to the Jaspersoft community edition download ×

Second subreport on a new page


2005 IR Help

Recommended Posts

By: Alex Irimiea - alex_irimiea

Second subreport on a new page

2005-05-31 01:27

Hi,

If anyone has an idea: i'm trying to build a report containing two subreports but with the second subreport starting on a new page, after the first one has ended.

I have tried this way:

1. use a simple query for the main report, smth. like :

"SELECT * FROM <table> WHERE <primarykey>=<value>" ,in this way knowing for sure that only a record will be result from the query.

2. Create two new groups in this "master" report - each group having the "group expression" property set to a different field taken from the "query" table.

3. I have placed each of the two subreports in the headers of these two groups and checked for the second group - the property "start on a new page".

 

Conclusion: after running the report (which works fine otherwise) - the layout seems not to be as expected: the second subreport is following imediatelly after subreport #1 and not on a new page.

Any ideas, anyone?

Thank you all in advance.

 

 

 

 

 

By: Alex Irimiea - alex_irimiea

RE: Second subreport on a new page

2005-05-31 02:29

i have found a solution that might help other people having the same problem:

use only one group having group expression equal to a field from the query, move the first subreport in its header.

The second subreport i've put it in the summary band having checked the option "summary on a new page" - you can find this checkbox in /View/Report Properties/More..

I have found that there is also a checkbox "title on a new page", so i guess i could have handled it with 3 subreports too...

Though I wonder - what is the solution if i have 4+ number of subreports and i need each one to start on a new page, when the previous one ends. Just being curious..:)

 

 

 

 

By: ldecaro - ldecaro

RE: Second subreport on a new page

2005-09-27 12:48

have you tried using a subreport inside a subreport??

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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