Fill Table
Description
The Fill Table activity writes data from a DataTable into a table within a Microsoft Word document.
The target table is identified using a bookmark. The activity updates the specified Word File in place. The same file reference can be used by subsequent Word activities.
Common settings
Use Process Data to bind supported inputs to workflow values or upstream outputs. See Common Activity Features for shared execution, error-handling, and output-persistence settings. Availability depends on the activity.
Design-Time Configuration
Display Text
The label displayed for this activity on the workflow canvas.
Word File
The Word document to modify.
Password
Optional password used to open a password-protected document.
Bookmark Name
The bookmark that identifies the target table.
The bookmark must exist within the document and reference a table.
Data
The data to write into the Word table.
The value must be provided as a DataTable.
Match Column By
Specifies how DataTable columns are mapped to Word table columns.
Available options:
- Index – Columns are matched based on their position.
- Name – Columns are matched using column names.
Default: Index
See MatchColumnBy.
Append Row
Determines whether new rows are appended to the existing table.
- True – Adds new rows after the existing table rows.
- False – Replaces existing table data with the supplied DataTable.
Default: False
Has Header Row
Indicates whether the target Word table contains a header row.
When enabled, the header row is preserved and data is written starting from the first data row.
Default: True
Outputs
This activity does not produce activity-specific business outputs.
The updated document is written back to the specified Word File.
Example: Populate an invoice table
Prepare a Word template with a bookmark identifying the invoice-items table. Give its header cells the column names expected by the source DataTable, such as Description, Quantity, and Amount.
Bind the template Word File and source Data, set Bookmark Name, choose Match Column By = Name, and enable Has Header Row. Use Append Row to add to the existing data, or turn it off to replace table data while preserving the header.
With Index matching, arrange the source columns in the target table's order. Use compatible column names/counts and test with representative rows. The document is updated in place; pass the same file reference to subsequent Word activities.