Word Append Table
Word Append Table
Section titled “Word Append Table”Type: word-append-table · Package: Word Activities v1.0.0
Adds a DataTable as a table in the document, with simple borders and, optionally, a row of bold headers. It is the way to include tabular data in a generated report: a sales detail, a results table.
How it works
Section titled “How it works”Insert the table as a Word table at the end of the document. By default it writes the column names as the first row in bold (hasHeader = true). Only works within a session.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
table | expression | The DataTable to insert. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
session | session | Word session. Within a body it is inherited automatically. |
hasHeader | boolean | Write the column names as header row in bold. By default true. |
Example
Section titled “Example”Word Create path = "C:/reportes/ventas.docx" └─ body: Word Append Paragraph text = "Detalle de Ventas" style = Heading1 Word Append Table table = = ventasRelated activities
Section titled “Related activities”- Word Read Tables — the reverse operation: read tables.
- Word Append Paragraph — add text.