Skip to content

word table

zmworm edited this page Mar 31, 2026 · 23 revisions

Word: Table

Tables in Word documents with rows and cells, supporting styles, borders, merging, and cell-level formatting.

Path: /body/tbl[N], /body/tbl[N]/tr[M], /body/tbl[N]/tr[M]/tc[K]

Operations

  • get - Returned attributes and output format

  • add - Add tables, rows, and cells

  • set - Modify table, row, and cell properties

get

officecli get report.docx /body/tbl[1]
officecli get report.docx /body/tbl[1] --depth 3
officecli get report.docx /body/tbl[1]/tr[1]/tc[1]

query

officecli query report.docx "table"

remove

officecli remove report.docx /body/tbl[1]
officecli remove report.docx /body/tbl[1]/tr[3]

Based on OfficeCLI v1.0.28

Clone this wiki locally