Hello
I have a table of 200 rows, and 50 of them fit on a page (Table1)
What I'd like to do is create two new tables, Table2 and Table3. Table 2 would contain the 50 rows that fit on the page, and Table3 would contain the remaining 150.
I tried this, after adding Table1 to the page:
Table2 = Table1
Table3 = Table1.GetOveflowRows
then both Table2 and Table3 contain all 200 rows each, instead of 50 and 150, respectively.
Can you please help me out?
Thank you,
Theodor
Split table
Re: Split table
Support · Nov 3, 2008Hello Theodor,
You will have to instantiate a new Table as below to get the overflow of main table into a new Table:
Table Table3 = Table1.GetOverflowRows(); // table is the main table.
Doing Table2 = Table1 will cause Table2 to be the entire table with 200 rows. Use the GetVisibleHeight() method of the Table1 object to get the height used by the rows that are visible on the page. Then set the height of the Table2 equal to the value returned by the GetVisibleHeight() method of Table1.
Thanks,
ceTe Software Support Team