Overflow rows

Overflow rows

Forum member · Dec 4, 2007
Hello, I'm using GetOverflowRows with RepeatColumnHeaderCount and this works fine. But I wanted to add some text to the repeated column headers to indicate that this table is continued form the previous page. I tried to add text to a cell of the repeated column header, but this text is then also printed in the header of the table on the previous page. The code looks something like this: bool continued = false; do { Page page = new Page(); document.Pages.Add( page ); page.Elements.Add( table ); table = table.GetOverflowRows(); if (!continued) { continued = true; table.Rows[0].Cells[0].Text = table.Rows[0].Cells[0].Text +' (continued)'; } } while ( table != null ); However, the 'continued' addition now also turns up in the header of the table that is printed on the previous page (before the overflow). How can I make this work? Thanks, Hans

Re: Overflow rows

Support · Dec 4, 2007
Hello Hans, As you have experienced, with repeating either the column headers or the row headers, the information within those cells will be identical for every row or column within each overflowed table. Even though you are modifying the cells after you determine that overflow exists, the fact is that the table (and all page elements for that matter) do not actually get drawn until the Document's Draw method is called. The way, however, to achieve your desired behavior would be to just manually draw out the modified version of the column header for each overflow table. So in other words, you would just set the RepeatColumnHeader property to false, lower the starting location (the Y value) of the overflow table, and then create an overflow header using rectangles and labels with any of the modified content that you need. Let us know if you need anything further. Thanks, ceTe Software Support Team

Re: Overflow rows

Forum member · Dec 4, 2007
I understand. Maybe it is an idea to accept an enhancement to page elements that can be overflowed to be able to insert a token into the text that is added to overflowed content only. A bit like the tokens in the PageNumberingLabel. Thanks for your quick reply. Hans