Automatically adding rows to a document

From Planfix
Jump to: navigation, search

Some variables have a special property: when generating a document from a template, one line will be added to the document for each value stored in the variable.

For example, let's say we have a directory of cars: mX8rXO.png


We need to add the make and model of each car to a table in a document. We set up a template with the variables we need: VGWW6s.png


In the document, there will be as many rows as there are entries in the list: lfUJVe.png

Rows are multiplied in this way for variables that can store a list of values:


Important

There's a difference between how documents are created from Word templates versus Excel templates:

  • when creating a document using a Word template, new rows will only be added if the variable is inserted into the table;
  • when creating a document using an Excel template, rows will be added regardless of where the variable is inserted.


Additional information

Since the size of the final document may change when using variables that automatically add rows, there is a special mechanism for inserting stamps, signatures, and other images, which ensures that they are placed in the right place in the document.


Go To