-
Notifications
You must be signed in to change notification settings - Fork 517
ppt table add
zmworm edited this page Apr 29, 2026
·
52 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) |
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