Repository navigation
ppt table add
goworm edited this page Jun 26, 2026
·
53 revisions
Create tables with rows and cells on a slide.
Path: /slide[N] (parent)
| Property | Default | Description |
|---|---|---|
rows |
3 |
Number of rows |
cols |
3 |
Number of columns |
data |
- | Table data: inline (H1,H2;R1C1,R1C2) or CSV source (local path, HTTP URL, or data: URI) |
name |
Table {N} |
Table name |
x, y
|
defaults | Position (EMU or units) |
width, height
|
defaults | Size (EMU or units) |
colWidths |
uniform | Per-column widths as comma- or semicolon-separated lengths (EMU/cm/in/pt). Length must match cols; extra/missing entries fall back to the uniform default |
headerFill |
- | Solid fill color applied to row 0 (header) |
bodyFill |
- | Solid fill color applied to rows 1..N (body) |
border.horizontal |
- | Inside-horizontal dividers (between rows). Fans out to bottom of rows 1..N-1 plus top of rows 2..N. Alias: border.insideH
|
border.vertical |
- | Inside-vertical dividers (between columns). Fans out to right of cols 1..M-1 plus left of cols 2..M. Alias: border.insideV
|
firstRow |
- |
tblPr @firstRow flag — header-row styling enabled |
lastRow |
- |
tblPr @lastRow flag — total-row styling enabled |
firstCol |
- |
tblPr @firstCol flag — first-column styling enabled |
lastCol |
- |
tblPr @lastCol flag — last-column styling enabled |
bandedRows |
- |
tblPr @bandRow flag — alternating row banding from the table style |
bandedCols |
- |
tblPr @bandCol flag — alternating column banding from the table style |
Add rows to an existing table.
Path: /slide[N]/table[M] (parent)
| Property | Default | Description |
|---|---|---|
cols |
from grid | Cell count |
height |
from first row | Row height |
c1, c2, c3, ... |
(empty) | Cell text values |
# Create a table
officecli add slides.pptx /slide[1] --type table --prop rows=4 --prop cols=3 --prop x=2cm --prop y=5cm --prop width=20cm --prop height=10cm
# Add a row with values
officecli add slides.pptx /slide[1]/table[1] --type row --prop c1="Product" --prop c2="Revenue" --prop c3="Growth"
# Add a row with specific height
officecli add slides.pptx /slide[1]/table[1] --type row --prop c1="Widget A" --prop c2="$1.2M" --prop c3="+15%" --prop height=1cm
# Create table from inline data
officecli add slides.pptx /slide[1] --type table --prop "data=Product,Revenue;Widget A,$1.2M;Widget B,$800K"
# Create table from CSV file
officecli add slides.pptx /slide[1] --type table --prop data=/tmp/sales.csv
# Create table from CSV URL
officecli add slides.pptx /slide[1] --type table --prop data=https://example.com/report.csvBased on OfficeCLI v1.0.64