LassoScript Utility
Basics Browse Detail

[PDF_Table->Add]

Tag Link [PDF_Table->Add] Category PDF
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

Description

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

[PDF_Table->(Add: 'Text String')]
[PDF_Table->(Add: PDF_Text Variable)]
[PDF_Table->(Add: PDF_Table Variable)]

Parameters

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)]

Related Tags

Category Tags

Substitution
[PDF_Barcode]
[PDF_Color]
[PDF_Doc]
[PDF_Font]
[PDF_Image]
[PDF_List]
[PDF_Read]
[PDF_Text]
Process
[PDF_Serve]
Member
[PDF_Barcode->GenerateChecksum]
[PDF_Barcode->GetBarHeight]
[PDF_Barcode->GetBarMultiplier]
[PDF_Barcode->GetBarWidth]
[PDF_Barcode->GetBaseline]
[PDF_Barcode->GetCode]
[PDF_Barcode->GetFont]
[PDF_Barcode->GetSize]
[PDF_Barcode->GetTextAlignment]
[PDF_Barcode->GetTextSize]
[PDF_Barcode->GetType]
[PDF_Barcode->SetBarHeight]
[PDF_Barcode->SetBarMultiplier]
[PDF_Barcode->SetBarWidth]
[PDF_Barcode->SetBaseline]
[PDF_Barcode->SetCode]
[PDF_Barcode->SetFont]
[PDF_Barcode->SetGenerateChecksum]
[PDF_Barcode->SetShowChecksum]
[PDF_Barcode->SetTextAlignment]
[PDF_Barcode->SetTextSize]
[PDF_Barcode->ShowChecksum]
[PDF_Barcode->ShowCode39StartStop]
[PDF_Barcode->ShowEANGuardBars]
[PDF_Doc->Add]
[PDF_Doc->AddBarcode]
[PDF_Doc->AddChapter]
[PDF_Doc->AddCheckBox]
[PDF_Doc->AddComboBox]
[PDF_Doc->AddHiddenField]
[PDF_Doc->AddImage]
[PDF_Doc->AddList]
[PDF_Doc->AddPage]
[PDF_Doc->AddParagraph]
[PDF_Doc->AddPasswordField]
[PDF_Doc->AddPhrase]
[PDF_Doc->AddRadioButton]
[PDF_Doc->AddRadioGroup]
[PDF_Doc->AddResetButton]
[PDF_Doc->AddSection]
[PDF_Doc->AddSelectList]
[PDF_Doc->AddSubmitButton]
[PDF_Doc->AddTable]
[PDF_Doc->AddText]
[PDF_Doc->AddTextArea]
[PDF_Doc->AddTextField]
[PDF_Doc->Arc]
[PDF_Doc->Circle]
[PDF_Doc->Close]
[PDF_Doc->ClosePath]
[PDF_Doc->CurveTo]
[PDF_Doc->DrawText]
[PDF_Doc->GetColor]
[PDF_Doc->GetFormat]
[PDF_Doc->GetHeaders]
[PDF_Doc->GetMargins]
[PDF_Doc->GetPageNumber]
[PDF_Doc->GetSize]
[PDF_Doc->InsertPage]
[PDF_Doc->Line]
[PDF_Doc->Rect]
[PDF_Doc->SetColor]
[PDF_Doc->SetFont]
[PDF_Doc->SetLineWidth]
[PDF_Doc->SetPageNumber]
[PDF_Font->GetColor]
[PDF_Font->GetEncoding]
[PDF_Font->GetFace]
[PDF_Font->GetFullFontName]
[PDF_Font->GetPSFontName]
[PDF_Font->GetSize]
[PDF_Font->GetSupportedEncodings]
[PDF_Font->IsTrueType]
[PDF_Font->SetColor]
[PDF_Font->SetEncoding]
[PDF_Font->SetFace]
[PDF_Font->SetSize]
[PDF_Font->SetUnderline]
[PDF_Font->TextWidth]
[PDF_List->Add]
[PDF_Read->AddJavaScript]
[PDF_Read->ExportFDF]
[PDF_Read->FieldNames]
[PDF_Read->FieldType]
[PDF_Read->FieldValue]
[PDF_Read->GetHeaders]
[PDF_Read->ImportFDF]
[PDF_Read->JavaScript]
[PDF_Read->PageCount]
[PDF_Read->PageSize]
[PDF_Read->Save]
[PDF_Read->SetFieldValue]
[PDF_Read->SetPageRange]
[PDF_Text->Add]