2001 JI Open Discussion Posted August 14, 2006 Share Posted August 14, 2006 By: Ken Holzer - kholzer Multiple Subreports 2002-07-02 13:11Hi, I am generating a report with 4 subreports. I would like to have these subreports print one after the other on one page. Question I have how to set the y value of the 2nd thru 4th subreport, if I don't know how many rows the 1st report will print? Thanks, Ken By: Teodor Danciu - teodord RE: Multiple Subreports 2002-07-02 23:40 Hi, To achieve this, you have to arrange the subreport elements so that they float one after the other. A subreport element always stretches downwards to acquire all its content. Use positionType="Float" for your subreport elements and put them one after the other vertically. Attention: Let there a gap of at least one pixel between your subreports. If they overlap, the floating would not work. However, you will find that with the current version, due to some other features not implemented yet, the page break behavior is not always perfect. For best results, make your subreport elements of height 0 or 1, so that when the page will break, you don't have extra white space at the beginning of the page. Good luck! Teodor By: Ken Holzer - kholzer RE: Multiple Subreports 2002-07-03 10:29Thanks for the help. I did notice that the height needs to be 0 or they stack on top of each other (when I used 1). I made the y value equal to 0,1,2,3 and that all worked. I did notice that if I make the y value 0,1,3,2 then the 3rd subreport prints last. So it goes by the order of the y value. (which is nice if there is a need to reorder the reports at runtime) Thanks again, Ken Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now