Our report writer uses a page eject feature to eject new pages based on various "break fields". In many cases, the list of records for a break field (an employee ID for example) also spans more than a single page. I must thus force new pages in some instances and then trust the OverFlow feature to handle the rest, but it does not seem to work. The manual breaks must be made as the table is created and the overflow breaks happen in the second pass. I have solved the problem by using forced AddPage's in all instances and using the following
AddTable
AddPage
For I = 1 to TotalRows
If GetRequiredHeight + newrowheight > pagespace then
AddPage
AddTable
End if
AddRow
Next I
However, is there a way to mix forced breaks and overflow breaks or is the workaround the best solution?
Thank you.
Table Overflow and Manual New Pages
Re: Table Overflow and Manual New Pages
Support · Nov 12, 2007Hello,
The psuedo code you are using to handle the overflow rows is not advisable. You should not have to do both filling and checing for the overflows at the same time.
You can populate the entire table at the begining regardless if the informaiton is going to fit on the same page or not. After filling the table with records you can write your own logic to split the table to add to a new page or you can use the GetOverflowRows method which gives you the overflow records.
You can write your own logic to get the overflows by comparing the height available on the page and the height of the table. You can change the height of the table at any point of time by using the Height property of the table page element.
Thanks,
ceTe Software Support Team.