Table cells split badly across 2 pages
Posted: Mon Apr 29, 2024 1:54 pm
Dear Team,
I'm having an issue as you can see here in the attachment that cells right at the end of the page are trying to display themselves, although there is no room left.
In one row there are 9 columns - 4 or which contain icons.
Is it possible by some trick to get the cells to start on the next page when there is very little room left?
I am generating the table at runtime in code using c#, Stimulsoft.Base.dll and Stimulsoft.Report.dll and I am not using a MRF file template.
I've tried using CanBreak=true and BreakIflessThan: xx% on the table but this causes empty pages to be displayed in the middle of the table.
Is there some way of doing, for example, a second rendering where a row and its cells that are right at the bottom of the page are re-rendered and automatically moved down to the next page where they can begin and have enough room?
Could StiTableCell GetRealHeight() or GetRealTop() be helpful here? I've never used them before. What about JoinHeight and ChangeTopPosition?
That would be great if possible.
Many thanks.
John K.
I'm having an issue as you can see here in the attachment that cells right at the end of the page are trying to display themselves, although there is no room left.
In one row there are 9 columns - 4 or which contain icons.
Is it possible by some trick to get the cells to start on the next page when there is very little room left?
I am generating the table at runtime in code using c#, Stimulsoft.Base.dll and Stimulsoft.Report.dll and I am not using a MRF file template.
I've tried using CanBreak=true and BreakIflessThan: xx% on the table but this causes empty pages to be displayed in the middle of the table.
Is there some way of doing, for example, a second rendering where a row and its cells that are right at the bottom of the page are re-rendered and automatically moved down to the next page where they can begin and have enough room?
Could StiTableCell GetRealHeight() or GetRealTop() be helpful here? I've never used them before. What about JoinHeight and ChangeTopPosition?
That would be great if possible.
Many thanks.
John K.