Ensuring Uniform Expansion of Table Rows in Reports

How to ensure uniform table row expansion in reports

You may have a static table on a form where one of the cells is designated for entering comments. These comments can be quite lengthy, and it's important that the entire table row expands to accommodate the text, maintaining a consistent layout.

For example, on an inspection form, when a long comment is entered, the layout of the report may become misaligned if the rest of the row does not expand with the comment cell:

To ensure that a table row expands properly, follow these steps:

  1. Open the Report Designer for the form's report.

  2. Double-click the static table sub-report (Inspections) to open it.

  3. Expand the bottom margin of the sub-report so you have room to work. You can resize the margin when you are done.

  4. From the Toolbox on the left, drag a Table component onto the sub-report design surface.
  5. Three table cells are added to the report (you can delete any unnecessary cells, but we'll use all of the cells in this example).
  6. In the first table cell, add the label for the field.
  7. In the second and third table cells, insert the values from the form fields. Click the ƒ (Function) button to open the Expression Editor.
  8. In the Expression Editor, navigate to Fields > Form Answers.

  9. Double-click the applicable field to insert it into the expression.

  10. Click OK to apply the expression. Then, format the table cells by setting borders and fonts as needed, and position the table in the desired location on the report. Be sure each table cell has the Can Grow, Multiline and Word Wrap properties marked.
  11. Now when you print the report, all cells in the table expand properly to accommodate the content: