-
Notifications
You must be signed in to change notification settings - Fork 609
excel pagebreak
goworm edited this page Jun 26, 2026
·
1 revision
Manual row and column page breaks on a worksheet — a dispatcher that routes to a row break or a column break depending on whether you supply row or col/column.
Path: /{SheetName}/rowbreak[N] or /{SheetName}/colbreak[N]
- add - Insert a manual row or column page break
- set, get, query, remove - Standard operations
Parent: /{SheetName}
Supply either row (routes to a row break) or col/column (routes to a column break).
| Property | Required | Description |
|---|---|---|
row |
Row index — routes to a row break. Add-time only (Set is not supported; re-add to relocate). | |
col (alias column) |
Column index/letter — routes to a column break. Add-time only (Set is not supported; re-add to relocate). |
# Insert a horizontal page break before row 20
officecli add data.xlsx /Sheet1 --type pagebreak --prop row=20
# Insert a vertical page break before column F
officecli add data.xlsx /Sheet1 --type pagebreak --prop col=F
# column is an accepted alias for col
officecli add data.xlsx /Sheet1 --type pagebreak --prop column=F
# Query all page breaks
officecli query data.xlsx pagebreak
# Remove a row break by index
officecli remove data.xlsx /Sheet1/rowbreak[1]- This is a dispatcher element: supplying
rowresolves to a row break, while supplyingcol/columnresolves to a column break. -
rowandcolare add-time only — Set is not supported. To relocate a break, re-add it. - These properties are not surfaced back on
get. Usesheet.rowBreaksandsheet.colBreaksfor the indexed lists of breaks on a sheet.
-
Sheet - Parent element; exposes
rowBreaks/colBreaks - Excel Reference - All Excel elements
Based on OfficeCLI v1.0.119