-
Notifications
You must be signed in to change notification settings - Fork 533
word ole
zmworm edited this page Apr 10, 2026
·
17 revisions
Embedded OLE objects (Visio diagrams, Excel charts, equations, etc.) stored in the document.
Path: (inline within paragraphs, detected via w:object elements)
- get - Read OLE object properties
- query - Find OLE objects by selector
| Attribute | Type | Description |
|---|---|---|
progId |
string | ProgID identifier (e.g., Visio.Drawing.15, Excel.Sheet.12, Equation.3) |
width |
string | Width (cm, derived from VML shape) |
height |
string | Height (cm) |
previewImage |
string | Path to extracted preview image (auto-converted EMF/WMF → PNG) |
previewContentType |
string | MIME type of preview image |
# Find all OLE objects officecli query report.docx "ole" officecli query report.docx "object" officecli query report.docx "embed" # Picture selector also returns OLE objects officecli query report.docx "picture"
OLE object count appears in view outline:
File: report.docx | 12 paragraphs | 3 tables | 2 images | 1 OLE object
- OLE preview images in
.emfor.wmfformat are auto-converted to PNG for AI inspection and browser rendering (Windows only for GDI+ conversion; non-Windows returns the raw metafile). - HTML preview renders web-compatible preview images directly; metafile placeholders are shown with sized boxes.
- OLE objects are read-only in v1 — modification requires raw XML editing.
- Picture - Regular image elements
- Word Reference - All Word elements
Based on OfficeCLI v1.0.42