| Tag Link | [PDF_Table->Add] | Category | |
|---|---|---|---|
| Type | Member | Source Available | Yes |
| Support | Preferred | Version | 7.0 |
| Change | Unchanged | Data Source | Any |
| Output Type | None | Security | None |
| Implementation | LJAPI | Sets | Lasso 8.5, Lasso 8.0, Lasso 7.0 |
Inserts text content or a new nested table into a cell. Requires a text string, [PDF_Text] variable, or a new [PDF_Table] variable to be inserted as a parameter. Also requires parameters described in the following table. Note that
[PDF_Table->(Add: 'Text String')]
[PDF_Table->(Add: PDF_Text Variable)]
[PDF_Table->(Add: PDF_Table Variable)]
| Required Parameters | |
|---|---|
| -Col | Specifies the column number starting from 0 (numbered from left to right) of the cell to add. Requires an integer value. |
| -Row | Specifies the row number starting from 0 (numbered from top to bottom) of the cell to add. Requires an integer value. |
| Optional Parameters | |
| -Colspan | Specifies the number of columns a cell should span. If specified, requires an integer value 1 or greater. |
| -Rowspan | Specifies the number of rows a cell should span. If specified, requires an integer value 1 or greater. |
| -VerticalAlignment | Vertical alignment for text within a cell. Accepts a value of 'Top', 'Center', or 'Bottom'. Defaults to 'Center' if not specified. Optional. |
| -HorizontalAlignment | Horizontal alignment for text within a cell. Accepts a value of 'Left', 'Center', or 'Right'. Defaults to 'Center' if not specified. Optional. |
| -BorderColor | Specifies the border color for the cell (e.g. '#440000'). Defaults to '#000000' if not specified. |
| -BorderWidth | Specifies the border width of the cell in points. Requires an integer value. Defaults to 0 if not specified. |
| -Header | Specifies that the cell is a table header. This is typically used for cells in the first row. Optional. |
| -NoWrap | Specifies that the text contained in a cell should not wrap to conform to the cell size specifications. If used, the cell will expand to the right to accomodate longer text strings. Optional. |
To add a cell to a table:
Use the [PDF_Table->Add] tag. The example below adds a cell to the first row and column in a table. Note that the first row and column are numbered 0.
[$MyTable->(Add: 'This is the first cell in my table',