Master-Detail - StartNewPage

Stimulsoft Reports.NET discussion
Post Reply
Bert Bell
Posts: 3
Joined: Tue Jun 13, 2006 1:23 pm
Location: Bay Area, CA, USA

Master-Detail - StartNewPage

Post by Bert Bell »

Hello:

I have a report that is of type Master-Detail. The detail report is a subreport because it is 5 Header - DataBand - Footer 'sets'.

I would like the 4th set of Header DataBand Footer to always start on a new page. So I set the property StartNewPage in the Header for this'set'. It works for the first detail but the remaining details ignore this and have the Header follow the last footer from the previous Header-DataBand-Footer 'set'.

How do I solve this problem?

THanks
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Master-Detail - StartNewPage

Post by Edward »

The issue is confirmed.
We will inform you in this topic when the solution be ready.

But it seems that design of your report do not require using of the SubReports. Simply set for the main Page the property LargeHeight in true and move all your bands from the subreport to that Page.

Thank you.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Master-Detail - StartNewPage

Post by Edward »

Sorry, but this behaviour cannot be changed because of the some specific properties of the report engine. Please follow my previous answer. The result will be exact as you expected.

Thank you.
Bert Bell
Posts: 3
Joined: Tue Jun 13, 2006 1:23 pm
Location: Bay Area, CA, USA

Master-Detail - StartNewPage

Post by Bert Bell »

The report DOES require a subreport to get the behaviour I require and I added the subreport based on previous technical support answers.
What I have is a parent-child relation between two data tables. The child data is displayed in multiple databands. (This is an engineering report concerning heat exchanger design, I have databands for the hot fluid, cold fluid and the differences profile thru the heat exchanger)

So what I get now is:
Heat Exchanger 1 Parent Header
Hot Fluid Data Band for Exchanger 1
Cold Fluid Data Band for Exchanger 1
Difference Data Band for Exchanger 1
Heat Exchanger 2 Parent Header
Hot Fluid Data Band for Exchanger 2
Cold Fluid Data Band for Exchanger 2
Difference Data Band for Exchanger 2
etc. ...

With the databands on the main page I got
Heat Exchanger 1 Parent Header
Hot Fluid Data Band for Exchanger 1
Hot Fluid Data Band for Exchanger 2
continues for all heat exchangers for Hot Fluid Data Band
Cold Fluid Data Band for Exchanger 1
Cold Fluid Data Band for Exchanger 2
continues for all heat exchangers for Cold Fluid Data Band
Difference Data Band for Exchanger 1
Difference Data Band for Exchanger 2
continues for all heat exchangers for Difference Data Band
Heat Exchanger 2 Parent Header
Then all of the data bands again...


So I still need this problem to be solved.

And no I can't send you the report because I use many external dlls to do callculations in the report.
Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Master-Detail - StartNewPage

Post by Brendan »

Make sure your Detail Bands reference the Relationship to the Master Band (in your case the Heat Exchanger Band) and also make sure to set the Master Component for the Details bands to the Heat Exchanger Databand also.

Have a look at this sample I put together for Download Here and see if it the desired output you're after. Just open the report in the Designer and hit preview.

Notice the Relationships and Master Component set for the Detail Databands
Post Reply