Lasso Soft Inc. > Home

[PDF_Table->Add]

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 -Col and -Row count starting from 0. -ColSpan and -RowSpan should both be specified as a value 1 or higher.

  • Syntax
  • Parameters
[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.
Examples

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', -Col=0, -Row=0, -Colspan=1, -Rowspan=1)]
Tag Link [PDF_Table->Add] Category PDF
Type Member Data Source Any
Support Preferred Version 7.0
Output Type None Security None
Implementation LJAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft