Documentation menu

API Reference

Excel / Word (Office COM)

Office automation via win32com.client. Requires Microsoft Office to be installed.


ExcelApp

Full signatures for dolphin_desktop._office.ExcelApp are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

ExcelWorkbook

Full signatures for dolphin_desktop._office.ExcelWorkbook are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

ExcelSheet

Full signatures for dolphin_desktop._office.ExcelSheet are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

ExcelCell

Full signatures for dolphin_desktop._office.ExcelCell are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

ExcelRange

Full signatures for dolphin_desktop._office.ExcelRange are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

WordApp

Full signatures for dolphin_desktop._office.WordApp are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

WordDocument

Full signatures for dolphin_desktop._office.WordDocument are generated from the package docstrings — use help() in Python or autocomplete in your IDE.

Quick reference

from dolphin_desktop import ExcelApp, WordApp

# Excel
with ExcelApp.open("report.xlsx") as xl:
    ws = xl.active_workbook.sheet("Sheet1")
    ws.cell(1, 1).value = "Name"
    ws.range("A2:B5").value = [["Alice", 95], ["Bob", 87], ...]
    xl.active_workbook.save()

# Word
with WordApp.open("template.docx") as wd:
    doc = wd.active_document
    doc.find_replace("{{NAME}}", "John Doe")
    doc.save_as("output.docx")

See the Office automation guide for full examples.