Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

word ole

zmworm edited this page Apr 10, 2026 · 17 revisions

Word: OLE Object

Embedded OLE objects (Visio diagrams, Excel charts, equations, etc.) stored in the document.

Path: (inline within paragraphs, detected via w:object elements)

Operations

  • get - Read OLE object properties
  • query - Find OLE objects by selector

get Attributes

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

query

# 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"

View Output

OLE object count appears in view outline:

File: report.docx | 12 paragraphs | 3 tables | 2 images | 1 OLE object

Notes

  • OLE preview images in .emf or .wmf format 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.

See Also


Based on OfficeCLI v1.0.42

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /