Is dynamic table height possible?

Is dynamic table height possible?

Forum member · Dec 15, 2008
Is there a way to bypass specifying a height of a table? ceTe.DynamicPDF.PageElements.Table(X, Y, tableWidth, tableHeight); There are times where I don't know how many rows I need to generate within the table, so specifying an initial table height is something I don't want to do. I want the table to grow as my content grows.

Re: Is dynamic table height possible?

Support · Dec 15, 2008
Hello, You will have to pass the height of the table when creating a table object. You can not skip this. However you can let the table grow as much as it is required depending on the number of rows. You can reset the height of the table in later time using the Height property of the table object. You can also get the required height of the table after building the table by using the GetRequiredHeight method of the table. table.Height = table.GetRequiredHeight(); Thanks, ceTe Software Support Team.

Re: Is dynamic table height possible?

Support · Dec 15, 2008
Just to say it another way, while the height is required initially it is not important what you set it too because when building a dynamic Table you will likely always come back and reset it to a more accurate value after the Table has been populated. Hope that helps, ceTe Software Support Team

Re: Is dynamic table height possible?

Forum member · Dec 19, 2008
That's what I needed. Thank you very very much!