Overflow Table Columns

Skip Navigation LinksHome  /  Support  /  Forums  /  DynamicPDF Generator for COM/ActiveX (v5)  /  Overflow Table Columns

DynamicPDF Generator for COM/ActiveX (v5) Forum

 Oct 17 2011 4:20 AM
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.
 Oct 17 2011 6:01 AM
Posted by a ceTe Software moderator
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.
 Oct 17 2011 9:08 AM
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?
 Oct 17 2011 11:12 AM
Posted by a ceTe Software moderator
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.
 Oct 17 2011 11:26 AM
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?
 Oct 17 2011 11:45 AM
I've modified my logic to break the spanning when it reaches the end of the page and it works now.

Thanks very much.

All times are US Eastern Standard time. The time now is 11:35 AM.