on 07-12-2017 4:05 PM
I have a report that uses many subreports, some have varying amount of data.
If the page is printed halfway down and the next subreport is larger than the rest of the previous page, a page break occurs which leaves much blank space on the report.
I would like each subreport to be printed immediately after the previous subreport so that there is no page break.
Can this be done in CR 13 on VS 2010?
Thanks 🙂 .
Hi Anas,
Subreports are container objects and do not have a concept of the main report's paging. It works similar to images or tables in Word. If add an image onto a page and that image is larger than the remaining free space on that page, Word will start it on a new page.
Brian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Page break usually caused by "Keep together" settings. There are two places to uncheck: in the Section Expert for the section where the subreport is located and for the subreport itself - right-click the subreport in Design mode and select Format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thx Vitaly but i already tried this and it still don't work .
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thx for the answer Vitaly but i already tried this and it still don't work.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If Subreport is located in the Group section then there is a "Keep Group Together" check as well in Group Section.
Thx brian that's exactly what i noticed ! is there any other way to do it in your opinion ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anas,
The only way I've been able to work around it is to not use subreports. I created a Stored procedure and put the logic for the main report and the subreports into the Stored Procedure. This gave me all the records in one result set. This allowed me to create a group for each subreport and drop the records into the appropriate section.
Good luck,
Brian
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.