< Previous | Next >

Lesson 6: Cell widths resize to fit the page

In this lesson, you generate a table with cells that resize to fit the output document.
With the table property combination in this lesson: The table you create in this task adjusts to fit the page. Cell width values are used to adjust the size of the cells based on the content they contain.
  1. Save a copy of the base template you created. Example: C:\Documents and Settings\Administrator\Desktop\table_sizing_tutorial\table_sizing_tutorial-lesson6-table5.dta
  2. Open the new template in the Document Studio application.
  3. Enter a heading name:
    1. Double-click the text element contained in the paragraph element.
    2. Enter Table 5.
    3. Click OK.
  4. Select the table element.
  5. In the Properties view, expand formatting > specific.
  6. For the table autofit property, click the Configuration icon Configuration icon.
  7. Select autofit to window and click OK.
  8. For the resize to fit contents property, enter true.
  9. For the fixed cell width in column property, enter true.
  10. Save the template.

Test the output

  1. Click the Preview current document icon Preview current document icon.
  2. Click Yes to continue without configuring the other outputs.
  3. In the Results window, click the link to the PDF.
Result:
Table 5
To remove the cell width values:
  1. In the Document Studio application, select Cell 1.
  2. In the Properties view, expand formatting > specific.
  3. For the cell width property, delete the value.
  4. Repeat step 3 to remove the cell width values for Cell 2 and Cell 3.
  5. Rename the heading:
    1. Double-click the text element contained in the paragraph element.
    2. Enter Table 5: No cell widths specified.
    3. Click OK.
  6. Save the changes.
  7. Test the output.
If you removed the cell widths from each cell element, the table columns are adjusted based on the content in cells:
Example of table five where different cell widths are specified.

Lesson checkpoint

You generated a table with cells that resize to fit the output document size.
< Previous | Next >

Feedback