Posted 12 February 2026, 9:44 am EST - Updated 12 February 2026, 1:19 pm EST
We are currently migrating our reports from another reporting tool to C1FlexReport and stumbled across an issue which we could not solve so far, so we are asking for assistence.
Our report basically has a page header section, a detail section which hosts a sub report as it consists of multiple entries, and a (very small) footer (just a horizontal border in there). The whole report needs a coloured border around it, and we are searching for a solution to always stretch that border down to the page footer. In the first image attached, you see a screenshot of the report so far. I marked the space of the missing border in green - note: there’s two borders missing on BOTH pages.
In the second picture, find a screenshot of our report in the designer.
We tried multiple things, without success. The main task would be to create a section that dynamically fills up the remaining space on each page.
In the Group_BetrAnwNr_Footer.OnFormat event, we tried to calculate the remaining space by subtracting all the other sections’ RenderHeight from the page height. This worked - but only as long as the details section did not span across two pages.
We then tried the following:
- Render the report from our .NET application
- Calculate the sections’ heights on each page
- Set the height of the space filling section accordingly
- render the report again.
But we can’t find a way to access the reports pages or even their sections via code, since Document.Pages is protected (well, could use an inherited class of C1FlexReport passing .Pages() list through) and we cannot find a property to access a single page’s Sub-Objects. What are we missing here?
Can you recommend any layout trick to create a section that fills up remaining space? Or guide us to how to calculate the remaining space below a certain section, pagewise?
Best regards,
Johannes


