I don't know ReportBuilder well enough to give specifics, but I suggest
- Add 25 blank lines to the report query result. You must do this using a series of UNION commands. Make sure all sorting actions put them at the end of the results.
- Create a boolean variable
isBlankLine , which is updated for each detail line when it is evaluated for the layout. This variable is simply set to true if the record is an empty string (one of the lines added in step 1.) - Create another boolean variable
isReportEnd , which is evaluated on the page footer. This value is true if isBlankLine is true, otherwise it is set to false. - Finally, for each line string, suppress the line if
isReportEnd true.
This will fill the page with blank lines and suppress any additional pages. The only catch I can think of is that if the report ends with exactly 25 entries, so that the first line of the next page is an empty line, then your last page will be empty.
source share