create_table
Create formatted Word tables from 2D string data, with single-line borders and a bold header row. Specify location, width, and backup options for precise document placement.
Instructions
Create a table from 2D string data with single-line borders and a bold repeating header row (header_row=False for none). location is the standard location object ({paragraph}, {after_heading}, {outline}, {search}, {anchor}); omit it to append at the document end; position 'after' only. To build a table from a CSV or JSON file use import_table (protection-io pack). Auto-backup: prev/anchor slots in .ks4w-backups (backup=False skips rotation only); atomic validated save. Refuses documents open in Word.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| backup | No | ||
| location | No | ||
| width_pt | No | ||
| file_path | Yes | ||
| header_row | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||