dynamically resized table in middle of document

dynamically resized table in middle of document

Forum member · Oct 25, 2006
Hi, I have a PdfDocument and want to place a table somewhere into the middle of it. This table has an number rows and a size not known at compile time. I can position such a table by using the coordinates of a PdfFormField but the content of the table will flows over existing text. How do I prevent that? Thanks, Alexander

Re: dynamically resized table in middle of document

Support · Oct 26, 2006
Hello Alexander, You can change the height of a table at runtime by setting the Height property of the table. You can prevent the table from flowing over the text by setting the height of the table equal to the height of the PdfFormField where you will be adding the table and capture the remaining records of the table by using the GetOverflowRows() method of the table object. You can add these overflow records to the new page and add that page to the PDF document. You can refer to the [^a|http://www.DynamicPDF.com/Support/NET_Help_Library_06_03/Table%20Continuation. html|opennewwindow|Table Continuation^] topic in our help documentation that explains the concept of using the GetOverflowRows() method. Thanks, ceTe Software Support Team