After seeing Tim Dexter post about fixed line and row filler decided to post about the handling string wrapping in the template.
1. Need to display fixed lines.
2. If there are only few lines and the page is not filled then we need to print blank lines to fill the page.
3. At the end of the report we need to display the summary as shown above.
4. At the end of the rows including the rows with values and blank rows we need to print a line to end the box.