Filling white space in Data band
Hi,
I'm new to FastReport and i trying to learn. I have created a report with designer (script language: c#) with a page header, one data band and a page footer; the data is taken from a dataset. The problem is: if dataset returns (for example) only one row in data band, the row appears as expected but there is a big white gap until the pagefooter begins. I would like to continue printing the row's background until the page is full.
(i use FastReport version 2021.4.0 Community Edition)
I tried to search some solution on internet but nothing.
does anyone have any solution?
Thanks in advance for any hint.
This discussion has been closed.
Comments
Hello!
Add a ChildBand below your DataBand (or attach it to DataBand.Footer / before the footer) with empty cells/frames of the required row height.
Set the FillUnusedSpace property of this ChildBand to true.
If you require finer manual control, use the following loop in the PageFooter_BeforePrint (or ReportSummary) event: while (Engine.FreeSpace >= Child1.Height) Engine.ShowBand(Child1);.
When FillUnusedSpace = true, the FastReport .NET engine automatically repeats the empty ChildBand exactly as many times as will fit until the end of the