p$TDV:SMPAPI:EtTxTab
p$TDV:SMPAPI:EtTxTab
Insert a table into the active document. The number of columns and the distance of the table to the left margin are transferred. The width of the columns can be set using the function p$TDV:SMPAPI:EtTxTabB .
After inserting the table, the cursor is moved to the first column of the first table row, so that the table is filled with the next insert operation of a text or RTF-text. The next text component is always attached below the table.
The new table initially only has 1 row. Changing into the next table column is conducted by the command f$Word(’Move cursor’,’12’,’1’). If the final column is reached a new row is created - exactly the same as for the manual insertion.
Syntax: | p$TDV:SMPAPI:EtTxTab( Columns, Distance ) | ||
| Argument | Type | Meaning |
| Columns | Integer | Number of table columns |
| Distance | Decimal | Distance of the table to the left margin (in cm; exact to Max. 0,01cm) |
Result: | - |
| |
Example: | Insert an RTF-text with a defined margin format. A table with a row and a column is inserted which the RTF-text will be inserted in. The edge distance is defined by the distance of the table to the left margin and the width of the table column: p$TDV:SMPAPI:EtTxTab( 1, 2.0 ) | ||