Determining paragraph length

Determining paragraph length

Forum member · Aug 9, 2006
I'm evaluating different packages, so I might be approaching this the wrong way. I need to be able to generate reports where I can tightly control what overflows from one page to the next. These reports are "banded" with columns within the bands. The height of a particular band can expand depending upon how the text within a particular column word wraps. If the height of a band is too large, I force a page break so that the band starts on a new page. What I need to be able to do is determine the number of lines/ height required to print a specific text with a specific font and at a spcific limited width. Is there a way to do that with DynamicPDF ?

Re: Determining paragraph length

Support · Aug 9, 2006
Hello, Yes, it is possible to do this using our product. You can get the overflow records of a table which do not fit on the page with the help of GetOverflowRows() method of the table object and then you can add a new page and add the overflow records to the new page. You can do this process as long as overflow records exist. If you directly add text to the cell of a table, the text automatically wraps and the cell will be resized according to the text. Alternatively you can add any page element to the cell of a table. If you use TextArea page element then you can get the required height of the text based on the font used and font size with the help of GetRequiredHeight() method of the TextArea object. Thanks, ceTe Software Support Team