Overflow Table Columns

Overflow Table Columns

Forum member · Oct 17, 2011
Hi, I'm having a problem with the GetOverflowColumns() function. When I use it, it does not return anything. Can you tell me how the function works and whatit uses to work out which columnss are overflowed? I assumed it would be table width and page width, but this doesn't seem to be the case. Thanks, Jim.

Re: Overflow Table Columns

Support · Oct 17, 2011
Hello Jim, The GetOverflowColumns and GetOverflowRows method will return Table object. If all the columns happen to fit on that first page then the GetOverflowColumns method will return a null and will then break out of the loop. Otherwise the loop will continue to create a new Page, add the page to the document, add the table to the page and then set the table equal to the remaining columns until all the columns are displayed. Please refer the documentation on Table continuation at: http://www.DynamicPDF.com/Support/COM_Help_Library_11_01/html/GeneratorTableContinuation.html . Thanks, ceTe Software Support Team.

Re: Overflow Table Columns

Forum member · Oct 17, 2011
Thanks, but that's not happening for me. The method is returning null, yet the table is too wide for the page. This is why I'm asking if it's based on something other than table/page width?

Re: Overflow Table Columns

Support · Oct 17, 2011
Hello, The overflow is based on the width of the table. Please make sure the table width is less than the width of the page. When columns are added to the table and if the sum of widths of all the columns is greater than the table width then GetOverflowColumns() will return the overflow columns in an overflow table object which should be added to the next page as illustrated in the example. Thanks, ceTe Software Support Team.

Re: Overflow Table Columns

Forum member · Oct 17, 2011
Hi again, I think the problem happens when you have cells that span columns. It does not seem to allow for this. For instance, if I have a row that spans all the columns then it won't return anything as overflow no matter how narrow the table width is. Is that how it's meant to work?

Re: Overflow Table Columns

Forum member · Oct 17, 2011
I've modified my logic to break the spanning when it reaches the end of the page and it works now. Thanks very much.